From: Tony Bowden Date: Thu, 17 Jul 2003 16:49:35 +0000 (+0100) Subject: PATCH: tweak 'split' docs for case of explicit 0 LIMIT X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b5da07fd59db94cc5a957ce65e6dff0d69552ce8;p=p5sagit%2Fp5-mst-13.2.git PATCH: tweak 'split' docs for case of explicit 0 LIMIT Message-ID: <20030717154935.GA20302@soto.kasei.com> p4raw-id: //depot/perl@20162 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 612b9cd..4010d4e 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.