Percent String Literals
Category:
The most common delimeters are {
and }
, but it is possible to use any kind of brackets or pair of @
, #
, %
, ^
, &
, *
, -
, =
, +
, /
, \
, ;
, |
, ?
, .
, !
, $
type | definition | interpolation |
---|---|---|
%W |
Array of double-quoted Strings | yes |
%w |
Array of single-quoted Strings | |
%Q |
Double-quoted String | yes |
%q |
Single-quoted String | |
%i |
Array of Symbols | |
%s |
Symbol | |
% |
Same as %Q |
yes |
%r |
Regular Expression | yes |
%x |
Capture output of running the command in a subshell (backtick ). | yes |