Perl-Sensitive Sunglasses | |
PerlMonks |
Re^3: Regexp works with some elements and doesn't with othersby mickeyn (Priest) |
on Feb 07, 2006 at 10:54 UTC ( [id://528469]=note: print w/replies, xml ) | Need Help?? |
Well ... wrong assumption! you can do it with 'grep' with the help of 'map':
note - this way you create temporary structures (map & grep), so I wouldn't use it on large arrays, but since you wrote it's a 50 elements array ... I guess you can consider this sollution.
Enjoy,
In Section
Seekers of Perl Wisdom
|
|