Name
SPLICE
Synopsis
SPLICE
this
, offset
, length
, list
Description
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 zero; 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 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.