in reply to using map
Something like that, yeah. It looks like a grep to me. But we don't know what you are getting, and we don't know what you were expecting, so don't expect more from us than confirming your "something like this".
In Section
Seekers of Perl Wisdom