Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^4: __PACKAGE__ in anonysubby thpfft (Chaplain) |
on Feb 19, 2005 at 20:52 UTC ( [id://432778]=note: print w/replies, xml ) | Need Help?? |
Thank you! That won't work in my real situation, because I won't be calling a class method like that, but you made me realise that instead of __PACKAGE__, I just need to call ref $self, which will inherit properly. D'oh:
I definitely am creating a closure now, but I don't think it will matter: it's only a simple scalar that gets unnaturally prolonged. Thanks.
In Section
Seekers of Perl Wisdom
|
|