[5.7.3 DOC PATCH] 'splice' with negative LENGTH
Mark-Jason Dominus [Tue, 2 Apr 2002 16:35:11 +0000 (11:35 -0500)]
Message-ID: <20020402213511.27781.qmail@plover.com>

(tweaked)

p4raw-id: //depot/perl@15693

pod/perlfunc.pod

index 04fee2d..322591a 100644 (file)
@@ -4649,7 +4649,8 @@ returns the last element removed, or C<undef> 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.