It's technically the dereference of a symbolic reference that's not allowed. However, there is a (documented) exception:
\&$sub_name
This means that while
$sub_name->()
isn't allowed,
(\&$sub_name)->()
is allowed.
($invocant->$method_name() is also allowed under strict.)
In reply to Re^2: Function name in a variable, can't recall the concept
by ikegami
in thread Function name in a variable, can't recall the concept
by mpersico
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |