Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Referencing Subroutines through a packageby mzedeler (Pilgrim) |
on Aug 16, 2009 at 08:58 UTC ( [id://788993]=note: print w/replies, xml ) | Need Help?? |
If you want $ContentHandler->{'/'}->() to invoke the Event method on $self->{object}, you can use an anonymous subroutine like so:
By the way, calling an attribute object is probably a really bad idea.
In Section
Seekers of Perl Wisdom
|
|