No such thing as a small change | |
PerlMonks |
Re^3: eval('__PACKAGE__') is always main?!!!by gaal (Parson) |
on Dec 23, 2004 at 20:21 UTC ( [id://417203]=note: print w/replies, xml ) | Need Help?? |
Eek, you're right; the unquoted __PACKAGE__ of course comes from the un-evaled compile-time pass, and hence does say "foo".
I can't find mention of this behavior in the docs (eval is where I'd like it to be), so yes, I'd consider this a bug.
In Section
Seekers of Perl Wisdom
|
|