in reply to RE (tilly) 2: scalarmap - some new perl syntax
in thread scalarmap - some new perl syntax
I did consider setting $_ to a 2 element anonymous array, then you'd use it like this.
But that isn't as elegant.scalarmap { $_->[0] + $_->[1] } 0, @z;
I considered using $a and $_ but that offended me too!
I see from merlyn's post below that the maker of List::Util::reduce came to the same conclusions...
|
|---|