|Perl Monk, Perl Meditation|
Re: wantarray alternative (Context propagation)by LanX (Canon)
|on Jul 10, 2013 at 20:44 UTC||Need Help??|
context is propagated into the return statement.
and according to perldoc: map in scalar context, returns the total number of elements so generated.
But the following code forces the map-statement into a sliced list.
and if the last value is enough for you in scalar context do
you haven't answered my question in Re^5: wantarray alternative yet, so you have both alternatives now.
( addicted to the Perl Programming Language)