For that particular case, you don't need either the -> or the &{}:
sub x{ say "x got [ @_ ]"; };; $h{x} = \&x;; $href = \%h;; $href->{x}('fred','bill');; x got [ fred bill ]
In reply to Re^3: How to call a sub-routine ref
by BrowserUk
in thread How to call a sub-routine ref
by greengaroo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |