in reply to How do I reference methods?
Though there are other interesting ways of getting a method reference, there already exists an equivalently straightforward way of doing this.
$ref = \&Class::method; $instance = new Class; $ref->( $instance, @args ); # - calls method of Class for the given i +nstance
|
---|
In Section
Seekers of Perl Wisdom