more useful options | |
PerlMonks |
Re: Conditional Map?by broquaint (Abbot) |
on Oct 07, 2002 at 11:33 UTC ( [id://203289]=note: print w/replies, xml ) | Need Help?? |
This sort of situation suits for just fine and doesn't really fit with a sole map as it's really designed towards applying a transform to a list, not iterating over one. You could however achieve your goal using map and grep in conjunction e.g
HTH
_________
In Section
Seekers of Perl Wisdom
|
|