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

I get the same results as you for the second (although with warnings), but more drastic ones for the first!
Name "main::a" used only once: possible typo at /tmp/t76 line 5.
Name "main::b" used only once: possible typo at /tmp/t76 line 5.
semi-panic: attempt to dup freed string at /tmp/t76 line 5.
Segmentation fault (core dumped)

This is with Perl 5.6.1, and List::Utils 1.11.

  • Comment on Re: An anomaly with List::Util::reduce and/or eval?

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

    Thanks for the confirmation. As I belatedly posted, I'm on 5.8 and 1.07... I'll try pullling a later version of List::Util (if I can get it to build).


    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.