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


in reply to Re: How does map work?
in thread [Solved] How does map work?

Awesome! Thanks! using for instead of while definitely solved my problem.