in reply to use base qw(Dazed Confused)
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use base qw(Dazed Confused)
by MeowChow (Vicar) on Jan 30, 2001 at 06:14 UTC |