in reply to Reference assessment techniques and how they fail
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Reference assessment techniques and how they fail
by kyle (Abbot) on Feb 17, 2008 at 17:18 UTC | |
by shmem (Chancellor) on Feb 17, 2008 at 19:04 UTC | |
by kyle (Abbot) on Feb 17, 2008 at 19:50 UTC |
In Section
Meditations