Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: delete n elements of an array

by space_monk (Chaplain)
on Nov 25, 2012 at 16:19 UTC ( #1005502=note: print w/ replies, xml ) Need Help??


in reply to delete n elements of an array

As jwkrahn has noted splice is the core method for adding and removing elements to/from an array. Read the documentation for the function as it does everything you seem to want to do.

A Monk aims to give answers to those who have none, and to learn from those who know more.


Comment on Re: delete n elements of an array

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1005502]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-10-23 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (125 votes), past polls