Hello Perlers,
this is probably going to be quick one. I know how to get an subroutine
reference under "normal" circumstances, but I don't know how to get one
from an object instance. Like:
---%<---
my $foo = My::Foo->new("bleh");
# Calling the sub:
$foo->quux;
# How would I get the reference to the sub just called, so that I could
do:
$quuxref->();
--->%---
I need this for the "attributes" pragma. :-)
TIA!
Eric
--
Eric MSP Veith <[email protected]>
Hechtsheimer Str. 2
DE-55131 Mainz
Germany
IBM Deutschland GmbH
Vorsitzender des Aufsichtsrats: Erich Clementi
Geschäftsführung: Martin Jetter (Vorsitzender), Reinhard Reschke,
Christoph Grandpierre, Matthias Hartmann, Michael Diemer, Martina
Koederitz
Sitz der Gesellschaft: Stuttgart
Registergericht: Amtsgericht Stuttgart, HRB 14562
WEEE-Reg.-Nr. DE 99369940
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/