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 reply to Re: How do I reference methods?
by RocketInABog
in thread How do I reference methods?
by Faidros
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |