in reply to Re^2: $foo = << "END"
in thread $foo = << "END"

You can include double quotes without escaping.

Replies are listed 'Best First'.
Re^4: $foo = << "END"
by aaron_baugher (Curate) on Mar 05, 2012 at 15:38 UTC

    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.