results inmy $foo = 'bar'; print <<END; 1. \$foo is $foo END print <<"END"; 2. \$foo is $foo END print <<'END'; 3. \$foo is $foo END print <<`END`; echo 4. \$foo is $foo END
See perlop#Quote-and-Quote-like-Operators.1. $foo is bar 2. $foo is bar 3. \$foo is $foo 4. $foo is bar
In reply to Re^4: assign a string using multiline format
by chibiryuu
in thread assign a string using multiline format
by danmcb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |