[Israel.pm] How to remove elements according to a filter from an array

Yossi Itzkovich Yossi.Itzkovich at ecitele.com
Thu May 24 21:36:29 EEST 2007


Hi,

Assuming I have a big array, and I want to remove elemnts according to a
criteria, how do I do it ?
Please note, I am not asking about getting a new list of elements that
passed the filter (like grep does), but removing the items from the
original list.  For a big array (and assuming that arrays are
implemented with linked list (is it ?)), then removing items from the
original list might be much faster.


Yossi




More information about the Perl mailing list