develooper Front page | perl.perl5.porters | Postings from September 2003

Re: List::Util reduce strangeness

Thread Previous | Thread Next
From:
Tony Bowden
Date:
September 27, 2003 02:38
Subject:
Re: List::Util reduce strangeness
Message ID:
20030927093839.GA32183@soto.kasei.com
On Fri, Sep 26, 2003 at 08:29:50PM +0100, Graham Barr wrote:
> >my $reduce = reduce { [@$a + @$b] } map [$_], (1 ..  10);
> What version are you running ?
> There was a fix in 1.12 for when the block returned a temporary value, 
> which it is in this case.

I had thought it was the latest CPAN version, but I seem to have a
shadowing problem whereby 1.12 is getting installed to a directory later
in @INC than the 5.8.0 shipped version...

Tony

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About