laziness, impatience, and hubris | |
PerlMonks |
eval inside an objectby Angel (Friar) |
on Apr 27, 2005 at 16:23 UTC ( [id://452015]=perlquestion: print w/replies, xml ) | Need Help?? |
Angel has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, I am messing around with eval since it's cool and trying some stuff. I am trying to run something AUTOLOAD like for experimental sake and I cant seem to get this to work. I looked at the docs and it says that all local and global vars will be defined in the eval space. And on some simpler non OO tests that works fine. What this thing is tossing for an error is that $self is not defined but I did a dump check and it is. Any reason why $self is not being added to the namespace for he eval in the same function that I am missing? Thanks in advance The error message: Can't call method "get_user" on an undefined value at (eval 1) line 1.
Back to
Seekers of Perl Wisdom
|
|