in reply to Re^3: RFC: Perl meta programming
in thread RFC: Perl meta programming
Beware.
The problem I have with isa() is that I either need to use the verbose UNIVERSAL::isa( $foo, 'Object::Foo' ) syntax...
Unfortunately, it's completely wrong. See Acme::UNIVERSAL::new if you think it's a good idea.
Wrapping every isa() check in an eval{} seems cumbersome, too.
Tough. If you care about getting the right answer, that's what you need to do. Yes, the syntax is a little clunky, but it will give you the right answer. Nothing else will.
I suppose I could just import isa(), as well.
Not if you care about getting the right answer.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: RFC: Perl meta programming
by TGI (Parson) on Oct 20, 2006 at 18:50 UTC | |
by diotalevi (Canon) on Oct 22, 2006 at 18:15 UTC | |
by druud (Sexton) on Sep 13, 2009 at 11:20 UTC | |
by diotalevi (Canon) on Oct 22, 2006 at 18:37 UTC | |
by chromatic (Archbishop) on Oct 22, 2006 at 21:11 UTC |