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


in reply to Re^2: Problems with map(function, array)
in thread Problems with map(function, array)

the LIST elements are ALWAYS passed via $_ per iteration.

you call twice w/o parameters so $_[0] is undef and undef*2 == 0!

take again a look at my "add"-example to distiguish between parameters and iteration value

Cheers Rolf