Even more surprising, what if $result is a blessed scalar with &{} overloaded?
In general, in Perl, there's no foolproof way of knowing the operations you can perform on a reference without performing the operation.
In reply to Re^2: detecting code referece
by chromatic
in thread detecting code referece
by mtroost
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |