in reply to Re: An anomaly with List::Util::reduce and/or eval?
in thread An anomaly with List::Util::reduce and/or eval?
I was using a string because the '+' in the example was actually a runtime supplied argument (see Re: array problems).
I see the same errors, but I don't understand why eval would return undef.... Or maybe I do.
I think you hit the nail on the head liz!
<DEEP SPECULATION>Maybe eval is using wantarray to detect a void context and returning undef? But that would mean wantarray is failing to detect the body of reduce as a LIST context?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: An anomaly with List::Util::reduce and/or eval?
by blokhead (Monsignor) on Aug 12, 2003 at 19:50 UTC | |
by sgifford (Prior) on Aug 12, 2003 at 20:35 UTC | |
|
Re: Re: Re: An anomaly with List::Util::reduce and/or eval?
by sgifford (Prior) on Aug 12, 2003 at 19:32 UTC | |
|
Re: Re: Re: An anomaly with List::Util::reduce and/or eval?
by liz (Monsignor) on Aug 12, 2003 at 19:33 UTC |