in reply to Re: enabling OO and non-OO access to the same module using a hash reference
in thread enabling OO and non-OO access to the same module using a hash reference
You've just broken polymorphism with your use of ref() and UNIVERSAL::isa(). The correct incantation follows.
defined( blessed( $_[0] ) ) and $_[0]->isa( __PACKAGE__ )⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
|---|