in reply to CGI::Application and object inheritance
As mentioned, you're overwritting the inheritance base creates. Here are three clean solution:
oruse base qw( CGI::Application Bar );
oruse base 'CGI::Application'; use base 'Bar';
use CGI::Application; use Bar; our @ISA = qw( CGI::Application Bar );
Off topic from the question at hand, are you sure you want to inherit from Bar? Inheritance ("is a") is all too often used when Encapsulation ("uses a") would be appropriate. Without knowing what Bar is, this seems to be one of those times.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CGI::Application and object inheritance
by spork (Monk) on Jul 27, 2005 at 15:39 UTC | |
by donarb (Beadle) on Jul 27, 2005 at 15:56 UTC | |
by cees (Curate) on Jul 27, 2005 at 16:56 UTC |