|The stupid question is the question not asked|
Eval str return different from Eval block returnby demerphq (Chancellor)
|on May 17, 2002 at 09:28 UTC||Need Help??|
demerphq has asked for the
wisdom of the Perl Monks concerning the following question:
Consider the following code
Now you would expect that these would all output the same thing. But they dont!
Can anybody explain this behaviour? Is it consistent across perl versions? (tested 5.6.1 AS631)
Why should the return from a string eval be any different from the return from a block eval? (podmaster suggests that this is documented somewhere.. But so far cant find it. Can anybody else?)
Do you agree that this is a bug in perl that should be reported?
Thanks for you help in advance,
Yves / DeMerphq