But I am curious about one thing, Why are you doing this? Importing the UNIVERSAL method like that is odd. UNIVERSAL::isa() is an OO method. Anything that isn't a blessed object should be handled with ref, blessed objects have UNIVERSAL::isa as a method, and it should be called as such:
use strict; use CGI; my $q = CGI->new(); # $q now "isa" CGI object. print $q->isa( 'CGI' ) ? "Yes it is\n" : "Nope\n"; print $q->isa( 'DBI' ) ? "Yes it is\n" : "Nope\n";
In reply to Re: use base qw(Dazed Confused)
by Adam
in thread use base qw(Dazed Confused)
by MeowChow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |