in reply to OO Slip-up Preventor

Rather than $_[0]->isa I'd write UNIVERSAL::isa($_[0],__PACKAGE__) because if your first argument is "" or "\t", just to give two examples, then your code dies.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: OO Slip-up Preventor
by japhy (Canon) on Jan 18, 2001 at 20:34 UTC
    I find that silly. Why does Perl allow "what a croc"->isa('foo'), but doesn't allow " what a croc"->isa('foo')? I find that highly shifty. (Harumph.)

    japhy -- Perl and Regex Hacker