I have another question that Learning Perl doesn't seem to address:
I'd like to remove all elements in an array that meet a certain criteria
without changing their order. I'm sure this gets done all the time, but
I'm not sure how to do it...
Help?
My guess (this is just an example):
@myarray = (1,2,3,4,5,6,7,8,9,10);
foreach (@myarray) { if ($_ == 3 || $_ == 5) { undef($_); } }
But I don't think it's working right...
- B
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]