Welcome to the Monastery | |
PerlMonks |
Re: delete n elements of an arrayby space_monk (Chaplain) |
on Nov 25, 2012 at 16:19 UTC ( [id://1005502]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|