http://www.perlmonks.org?node_id=1036904


in reply to Re: Required guidance to simplify this program
in thread Required guidance to simplify this program

Be that as it may, function map can also be used, but their usage i.e map and grep , like this is NOT efficient, because you are throwing away their return values.