in reply to finding and deleting item from an array
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.splice @picturelist, $p, 1;
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,
Stephen Rawls
|
---|