Reference: SPLICE (Perl in a Nutshell)

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: SHIFTChapter 8
Standard Modules
Next: Reference: STORE
 

SPLICE

SPLICE this, 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 zero; if negative, counts back from the end of the array.

length

Optional. Defaults to the rest of the array.

list

May be empty.


Previous: Reference: SHIFTPerl in a NutshellNext: Reference: STORE
Reference: SHIFTBook IndexReference: STORE

Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.