in reply to inheritance weirdness
This is probably because @ISA returns Foo::foo as a method when invoked on Baz (Baz, of course, not having its own foo); even though you expect it to be Baz::foo and thus have something interesting in its SUPER pseudoclass -- probably calling Bar::foo, and then finally Foo::foo. Of course, at this point, your script would still bomb out, because it'd still try to find a superclass for Foo.if ($s->SUPER::can("foo")) {$s->SUPER::foo ()}
|
|---|