diff options
author | Tony Bowden <tony@kasei.com> | 2003-07-17 17:49:35 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-07-17 20:39:31 +0000 |
commit | b5da07fd59db94cc5a957ce65e6dff0d69552ce8 (patch) | |
tree | e62aa4574a38609865cdaff2b0935706137bf474 /pod | |
parent | 110b9c83de6ca99faf93da8a9079d29a08f75f22 (diff) | |
download | perl-b5da07fd59db94cc5a957ce65e6dff0d69552ce8.tar.gz |
PATCH: tweak 'split' docs for case of explicit 0 LIMIT
Message-ID: <20030717154935.GA20302@soto.kasei.com>
p4raw-id: //depot/perl@20162
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlfunc.pod | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 612b9cdd70..4010d4e009 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4865,8 +4865,8 @@ The LIMIT parameter can be used to split a line partially ($login, $passwd, $remainder) = split(/:/, $_, 3); -When assigning to a list, if LIMIT is omitted, Perl supplies a LIMIT -one larger than the number of variables in the list, to avoid +When assigning to a list, if LIMIT is omitted, or zero, Perl supplies +a LIMIT one larger than the number of variables in the list, to avoid unnecessary work. For the list above LIMIT would have been 4 by default. In time critical applications it behooves you not to split into more fields than you really need. |