Literals/String: Difference between revisions

Line 347:
"\n"; # newline character
`ls`; # runs a command in the shell and returns the output as a string
q/hello/; # same as 'hello', but allows custom delimiters, eg: q(hi) and q!hi!
qq/hello/; # same as "hello", but allows custom delimiters, eg: qq{$hi} and qq#hi#
qw/one two three/; # same as ('one', 'two', 'three'); constructs a list of the words
qx/ls/; # quoted execution, same as `ls`
qr/regex/; # creates a regular expression
<<END; # Here-Document
Hi, whatever goes here gets put into the string,
Anonymous user