in reply to Re: use base qw(Dazed Confused)
in thread use base qw(Dazed Confused)
since that can return an error. So instead, I have to use:$param->isa('Foo')
Which is, of course, alot to type, hence the alias.UNIVERSAL::isa($param, 'Foo');
Update: Oh, and I forgot to mention that it wasn't exactly my idea:
That was taken from the <cough> UNIVERSAL.pm documentation ;)These subroutines should not be imported via use UNIVERSAL qw(...). If you want simple local access to them you can do *isa = \&UNIVERSAL::isa; to import isa into your package.
|
|---|