in reply to An anomaly with List::Util::reduce and/or eval?

I dont experience your bug. It must have appeared sometime after AS 633....

#!perl -l use List::Util qw[ reduce ]; print "\$List::Util::VERSION = $List::Util::VERSION\n"; printf "Perl version: %vi\n",$^V; print reduce{ print "$a $b"; eval "$a + $b" } 1,2,3; print reduce{ eval "$a + $b" } 1,2,3; __END__ $List::Util::VERSION = 1.07 Perl version: 5.6.1 1 2 3 3 6 6
This is perl, v5.6.1 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2001, Larry Wall Binary build 633 provided by ActiveState Corp. http://www.ActiveState. +com Built 21:33:05 Jun 17 2002

---
demerphq

<Elian> And I do take a kind of perverse pleasure in having an OO assembly language...

Replies are listed 'Best First'.
Re: Re: An anomaly with List::Util::reduce and/or eval?
by BrowserUk (Patriarch) on Aug 13, 2003 at 18:40 UTC

    Do you have the compiled version of List::Util installed? Ie. Do you have lib/auto/List/Util/Util.dll?

    If the compiled version isn't available, then the module falls back to using pure perl code. Maybe that is the difference?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

      Yep. You're right. I have the XS one at home. I get the same problem now that I've compiled it properly.

      Incidentally theres been a few things on p5p that you might want to follow. Apparent 5.8.1 RC5 wont come with the perl implementation?!


      ---
      demerphq

      <Elian> And I do take a kind of perverse pleasure in having an OO assembly language...