diff options
author | Robin Barker <RMBarker@cpan.org> | 2000-11-27 17:56:44 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-28 16:39:37 +0000 |
commit | 0156e0fd38ee76383c8249624073be2fc80a69a8 (patch) | |
tree | bf4c5096222b2852d5bb07f8ea3a014ffbdbf2b7 /pod/perlfunc.pod | |
parent | 10cbe18a3cc229a9943f5b3605f960704d3c2b93 (diff) | |
download | perl-0156e0fd38ee76383c8249624073be2fc80a69a8.tar.gz |
Re: 5.6 bug: split /^/ implies /m modifier (from CLPM)
Message-Id: <200011271756.RAA22706@tempest.npl.co.uk>
p4raw-id: //depot/perl@7902
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index ec0fe0880f..f2bf51e18a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4375,6 +4375,15 @@ characters at each point it matches that way. For example: produces the output 'h:i:t:h:e:r:e'. +Empty leading (or trailing) fields are produced when there positive width +matches at the beginning (or end) of the string; a zero-width match at the +beginning (or end) of the string does not produce an empty field. For +example: + + print join(':', split(/(?=\w)/, 'hi there!')); + +produces the output 'h:i :t:h:e:r:e!'. + The LIMIT parameter can be used to split a line partially ($login, $passwd, $remainder) = split(/:/, $_, 3); |