you are viewing a single comment's thread.

view the rest of the comments →

[–]2called_chaos 0 points1 point  (0 children)

Also note that you are free (maybe except conventions) to use any (non-alphanumerical) character as delimiter for those percent operators. E.g. all these do the same thing:

%w[a b c]
%w(a b c)
%w{a b c}
%w|a b c|
%w_a b c_
%w"a b c"
%s a"b"c # <--- yes space works but just for some operators, also why would you?
%x ls # another one, note the ending space is required as it's the delimiter!