From: Mark-Jason Dominus Date: Tue, 2 Apr 2002 16:35:11 +0000 (-0500) Subject: [5.7.3 DOC PATCH] 'splice' with negative LENGTH X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d0920e03b75b1b03afc94ea43fc0948284dd6a11;p=p5sagit%2Fp5-mst-13.2.git [5.7.3 DOC PATCH] 'splice' with negative LENGTH Message-ID: <20020402213511.27781.qmail@plover.com> (tweaked) p4raw-id: //depot/perl@15693 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 04fee2d..322591a 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4649,7 +4649,8 @@ returns the last element removed, or C if no elements are removed. The array grows or shrinks as necessary. If OFFSET is negative then it starts that far from the end of the array. If LENGTH is omitted, removes everything from OFFSET onward. -If LENGTH is negative, leaves that many elements off the end of the array. +If LENGTH is negative, removes the elements from OFFSET onward +except for -LENGTH elements at the end of the array. If both OFFSET and LENGTH are omitted, removes everything. If OFFSET is past the end of the array, perl issues a warning, and splices at the end of the array.