http://www.perlmonks.org?node_id=1010638


in reply to Removing elemets from an array

Short answer, perlfaq4