Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: eval('__PACKAGE__') is always main?!!!

by gaal (Parson)
on Dec 23, 2004 at 20:21 UTC ( #417203=note: print w/ replies, xml ) Need Help??


in reply to Re^2: eval('__PACKAGE__') is always main?!!!
in thread eval('__PACKAGE__') is always main?!!!

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.


Comment on Re^3: eval('__PACKAGE__') is always main?!!!
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://417203]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2015-07-31 01:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls