Eg by changing while to for (another bug in your code btw is to think that while automatically sets $_)
Im pretty sure HOP already shows how to emulate map! Sorry no code am typing on my mobile... :-)
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: How does map work?
by LanX
in thread [Solved] How does map work?
by three18ti
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |