summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJon Eveland <jweveland@yahoo.com>2001-05-11 00:36:28 -0700
committerJarkko Hietaniemi <jhi@iki.fi>2001-05-11 13:46:30 +0000
commit836e0ee7e35832ca4f82f36d3c22b706302034d6 (patch)
tree9c8be8b55ea306b1a491dd14a1741476fb274e4f /pod
parentfd36d4b8fc952d7c333e7ec371939c57f8174aa8 (diff)
downloadperl-836e0ee7e35832ca4f82f36d3c22b706302034d6.tar.gz
Re: [PATCH perlfunc.pod] split on an empty string
Message-ID: <20010511143628.24225.qmail@web10402.mail.yahoo.com> p4raw-id: //depot/perl@10083
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod13
1 files changed, 8 insertions, 5 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index a38b9ba690..a790325510 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4433,11 +4433,14 @@ splits on whitespace (after skipping any leading whitespace). Anything
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, splits into no more than that
-many fields (though it may split into fewer). 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.
+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.
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