in reply to Re^2: subclass discovery at runtime
in thread subclass discovery at runtime
It seems that UNIVERSAL::isa is not doing at all what I'm expecting it to do...
Seems to print false! Does this mean 'isa' only works on objects? Not on class-names?print UNIVERSAL::isa('SubClass','SuperClass') ? 'true' : 'false'; package SuperClass; package SubClass; use vars qw(@ISA); @ISA=qw(SuperClass);
I feel like a noob... I'd consider doing a '--' on my own original post, if I could...
Update: Aristotle got me on track again... Temporary insanity resolved
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: subclass discovery at runtime
by Aristotle (Chancellor) on Jan 27, 2003 at 17:40 UTC | |
by Gilimanjaro (Hermit) on Jan 27, 2003 at 18:11 UTC | |
by Aristotle (Chancellor) on Jan 27, 2003 at 23:00 UTC | |
by Gilimanjaro (Hermit) on Jan 27, 2003 at 23:31 UTC |