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

may I ask, why you pass $_ as argument?

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^3: [Solved] How does map work?
by Laurent_R (Canon) on Oct 26, 2013 at 22:45 UTC

    Well, yes, you are right, this is not needed. But this was an example for a tutorial, I wanted it to be explicit to explain clearly what is going on. Thank you for your remark, I need to add at least one example without $_ in my tutorial.