You can do:
$self->$handler(@arguments);
This will only work if the anonymous subroutine reference is assigned to $handle and not the name of the lexical as in the OP.
In reply to Re^2: Invoking a string reference to a anonymous subroutine
by AnomalousMonk
in thread Invoking a string reference to a anonymous subroutine
by Superfox il Volpone
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |