You got bitten by precedence:
&$self -> { CALLBACK }{ ALL } -> ( $tref );
deparses as
&{$self} -> { CALLBACK }{ ALL } -> ( $tref );
What you want is:
$self-> { CALLBACK }{ ALL } -> ( $tref );
or
&{ $self-> { CALLBACK }{ ALL } }( $tref );
In reply to Re: Code reference problem
by Corion
in thread Code reference problem
by Moron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |