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

Re: List::Util reduce strangeness

Thread Previous | Thread Next
Tony Bowden
September 27, 2003 02:38
Re: List::Util reduce strangeness
Message ID:
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...


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About