Syntactic Confectionery Delight | |
PerlMonks |
Re: How to identify calling class whilst in inherited methodby Marcello (Hermit) |
on Dec 19, 2003 at 12:46 UTC ( [id://315784]=note: print w/replies, xml ) | Need Help?? |
More interestingly,
I have a similar problem, but I want to know which class AND which method called the method in a baseclass. Does anybody know how to use caller() to get this data? I remember running into problems when using an eval() in the calling method. Thanks. Marcel Update: Think I've found it: I ignore "main" because this is always a startup script.
In Section
Seekers of Perl Wisdom
|
|