in reply to Re: detecting code referece
in thread detecting code referece
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.
|
|---|