Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
P is for Practical
 
PerlMonks  

Re^2: eval inside an object

by dave_the_m (Monsignor)
on Apr 27, 2005 at 13:47 UTC ( [id://452052]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: eval inside an object
in thread eval inside an object

$self is not local or global, it's a lexical variable!... though, I recall seing some patch for this in p5p, maybe its supported in the development version of perl (currently 5.9.2).
The lexical scope bugs I've fixed in the 5.9.x branch aren't applicable here; a simple eval executed immediately (as opposed to later via a closure) has always been able to see variables in its immediate enclosing scope.

Dave.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://452052]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.