From: Benjamin Sugars Date: Fri, 11 May 2001 11:36:04 +0000 (-0400) Subject: Re: [PATCH perlfunc.pod] split on an empty string X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e833de1e92fbc1dd83d6239be4b7391e4fa4f8ce;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH perlfunc.pod] split on an empty string Message-ID: p4raw-id: //depot/perl@10089 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index a790325..e959cd3 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 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 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