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

That's exactly what I mean. =)

But don't use UNIVERSAL::isa, that makes overridding ->isa hard.

-nuffin
zz zZ Z Z #!perl
  • Comment on Re^4: Prototype "foo {...} bar {...}" is documented?

Replies are listed 'Best First'.
Re^5: Prototype "foo {...} bar {...}" is documented?
by ihb (Deacon) on Nov 24, 2004 at 01:42 UTC

    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!

      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