in reply to CGI::Application and object inheritance
Rather than mixing use of use base and directly assigning to @ISA, consider the use of @ISA alone:package Foo; + use base 'CGI::Application'; print "@ISA\n"; use Bar; @ISA = ("Bar"); print "@ISA\n"; # at this point Foo only inherits from Bar __END__ CGI::Application Bar
BTW, I believe "bar" should be capitalized in your original code.use CGI::Application; use Bar; @Foo::ISA = qw(CGI::Application Bar);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Application and object inheritance
by ikegami (Patriarch) on Jul 27, 2005 at 14:58 UTC |