start page | rating of books | rating of authors | reviews | copyrights

Perl in a Nutshell

Perl in a NutshellSearch this book
Previous: Reference: SHIFT Chapter 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: SHIFT Perl in a Nutshell Next: Reference: STORE
Reference: SHIFT Book Index Reference: STORE

Library Navigation Links

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