>>>>> "Alan" == Alan Burlison <[EMAIL PROTECTED]> writes:

Alan> Graham Barr wrote:
>> >       Reduce          (e.g. $x = reduce { sum } @list;

Alan> Is it sufficiently more useful than:

Alan>    $x = 0; map $x += $_, @list;

As long as you write that as:

        $x = 0; $x += $_ for @list;

sure. :)

"A proud member of the Help Stamp Out Void Map/Grep Committee" :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to