Using isa:
if (UNIVERSAL::isa($ref, 'Foo::Bar')) { #... } elsif (UNIVERSAL::isa($ref, 'Baz::Quux')) { #... }
In reply to Re: Question about creating intelligent behaviors in modules WRT external objects/modules
by GrandFather
in thread Question about creating intelligent behaviors in modules WRT external objects/modules
by atcroft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |