diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-08-21 14:09:51 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-08-21 14:11:04 -0700 |
commit | 1bf4876033f9a2a0170bb97bc2e862a0b3fead35 (patch) | |
tree | f8f12be74f40fc73879e76b82b5a929fa4e98dd9 /pod/perlop.pod | |
parent | 372a31d8f53707bcfa9c233ce02a93f778b7bb4b (diff) | |
download | perl-1bf4876033f9a2a0170bb97bc2e862a0b3fead35.tar.gz |
perlop.pod: Update here-doc-in-quotes parsing rules
Diffstat (limited to 'pod/perlop.pod')
-rw-r--r-- | pod/perlop.pod | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod index 0398f70e07..d0cfd85669 100644 --- a/pod/perlop.pod +++ b/pod/perlop.pod @@ -2474,21 +2474,25 @@ you'll need to remove leading whitespace from each line manually: FINIS If you use a here-doc within a delimited construct, such as in C<s///eg>, -the quoted material must come on the lines following the final delimiter. -So instead of +the quoted material must still come on the line following the +C<<< <<FOO >>> marker, which means it may be inside the delimited +construct: s/this/<<E . 'that' the other E . 'more '/eg; -you have to write +It works this way as of Perl 5.18. Historically, it was inconsistent, and +you would have to write s/this/<<E . 'that' . 'more '/eg; the other E +outside of string evals. + Additionally, quoting rules for the end-of-string identifier are unrelated to Perl's quoting rules. C<q()>, C<qq()>, and the like are not supported in place of C<''> and C<"">, and the only interpolation is for |