Note that this technique can't detect a code reference because it would call the referenced sub.
It calls the overloaded sub, which has to return a code reference to execute. If you write defined &$some_object, perl will not call the returned code reference, but the expression will evaluate to true.
In reply to Re: Reference assessment techniques and how they fail
by chromatic
in thread Reference assessment techniques and how they fail
by kyle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |