diff options
author | Mike Guy <mjtg@cam.ac.uk> | 2000-08-07 15:02:09 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-08 17:37:57 +0000 |
commit | 8bd33e3ebedead5d895aa1c866818d49eb50a164 (patch) | |
tree | 31d0f24f95a480420400d2a3436118ee242f55b0 /pod/perldata.pod | |
parent | 70c94a1962e4ec78d69c2158c32b643ceb04ff36 (diff) | |
download | perl-8bd33e3ebedead5d895aa1c866818d49eb50a164.tar.gz |
Document here-doc better.
Subject: Re: [ID 20000804.003] heredoc in s///e replacement
Message-Id: <E13LmXh-0006rM-00@libra.cus.cam.ac.uk>
p4raw-id: //depot/perl@6548
Diffstat (limited to 'pod/perldata.pod')
-rw-r--r-- | pod/perldata.pod | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pod/perldata.pod b/pod/perldata.pod index 70ab1615f2..65689a6056 100644 --- a/pod/perldata.pod +++ b/pod/perldata.pod @@ -462,6 +462,22 @@ from each line manually: down from the door where it began. 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 + + s/this/<<E . 'that' + the other + E + . 'more '/eg; + +you have to write + + s/this/<<E . 'that' + . 'more '/eg; + the other + E + =head2 List value constructors List values are denoted by separating individual values by commas |