|
|
|
Your skill will accomplish what the force of many cannot |
|
| PerlMonks |
Re: finding and deleting item from an arrayby srawls (Friar) |
| on Jul 01, 2001 at 01:24 UTC ( [id://92965]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
You're almose there, just add a one after that comma after $p. The splice would then look like this:
The 1 in the above splice is used as a length; it tells how many elements to delete. To learn more about splice, just click one of the multiple links in the above paragraph. Update: Well, I was concentrating on your syntax, tachyon provides a much more idiomatic answer; I'd go with his if I were you The 15 year old, freshman programmer,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||