in reply to Re: Invoking a string reference to a anonymous subroutine
in thread Invoking a string reference to a anonymous subroutine
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.
|
|---|