in reply to Re^4: Prototype "foo {...} bar {...}" is documented?
in thread Prototype "foo {...} bar {...}" is documented?

Using just $@->isa(...) on the other hand errors if $@ isn't an object.

So I guess you're down to a combination with &blessed from Scalar::Util: blessed($@) and $@->isa(...).

ihb

See perltoc if you don't know which perldoc to read!
Read argumentation in its context!

Replies are listed 'Best First'.
Re^6: Prototype "foo {...} bar {...}" is documented?
by nothingmuch (Priest) on Nov 24, 2004 at 06:54 UTC
    That's what I use...

    Although it's longer, it doesn't breack for the various funky objects that exist on CPAN, like Test::MockObject, Object::Realize::Later, and so forth.

    -nuffin
    zz zZ Z Z #!perl