diff options
author | Benjamin Sugars <bsugars@canoe.ca> | 2001-05-11 07:36:04 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-12 03:38:15 +0000 |
commit | e833de1e92fbc1dd83d6239be4b7391e4fa4f8ce (patch) | |
tree | acb64b8f5a8774ae6eb268783db320a74c5219d7 | |
parent | 50762d599a70539e068604b244288cd8a1dd3ee1 (diff) | |
download | perl-e833de1e92fbc1dd83d6239be4b7391e4fa4f8ce.tar.gz |
Re: [PATCH perlfunc.pod] split on an empty string
Message-ID: <Pine.LNX.4.21.0105111131540.1804-100000@marmot.rim.canoe.ca>
p4raw-id: //depot/perl@10089
-rw-r--r-- | pod/perlfunc.pod | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index a790325510..e959cd3da0 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4434,13 +4434,14 @@ matching PATTERN is taken to be a delimiter separating the fields. (Note that the delimiter may be longer than one character.) If LIMIT is specified and positive, it represents the maximum number -of fields the EXPR will be split into, though the number of fields -returned depends on the number of occurrences of PATTERN within EXPR. -If LIMIT is unspecified or zero, trailing null fields are stripped -(which potential users of C<pop> would do well to remember). If LIMIT -is negative, it is treated as if an arbitrarily large LIMIT had been -specified. Note that splitting an EXPR that evaluates to the empty -string always returns the empty list, regardless of the LIMIT specified. +of fields the EXPR will be split into, though the actual number of +fields returned depends on the number of times PATTERN matches within +EXPR. If LIMIT is unspecified or zero, trailing null fields are +stripped (which potential users of C<pop> would do well to remember). +If LIMIT is negative, it is treated as if an arbitrarily large LIMIT +had been specified. Note that splitting an EXPR that evaluates to the +empty string always returns the empty list, regardless of the LIMIT +specified. A pattern matching the null string (not to be confused with a null pattern C<//>, which is just one member of the set of patterns |