in reply to Deleting an element from the middle of an array

In addition to the comment by salvadors, I'd like to point out that splice also allows you to keep the array order, whereas your solution does not.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.

  • Comment on (Ovid) Re: Deleting an element from the middle of an array