Name
SPLICE
Synopsis
SPLICEthis
,offset
,length
,list
Performs the equivalent of a splice on
the array. Returns a list of the original
length
elements at the specified
offset. The arguments are:
offset
Optional. Defaults to
0
; if negative, counts back from the end of the array.length
Optional. Defaults to the rest of the array.
list
May be empty.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.