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
In Section
Seekers of Perl Wisdom