Also, sometimes they make indentation and blank lines clearer. You can include those with multi-line quoted strings, but that's not always as clear. For one thing, you can't justify the first line to the left without adding a newline at the beginning. These are equivalent, and I think the first is clearer:
my $foo = <<END; paragraph 1 line 2 paragraph 2 line 2 END my $bar = qq| paragraph 1 line 2 paragraph 2 line 2 |;
Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.
In reply to Re^4: $foo = << "END"
by aaron_baugher
in thread $foo = << "END"
by akagrawal3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |