snra_perl has asked for the wisdom of the Perl Monks concerning the following question:
I have a sub class DeviceEventHandler which inherits the above EventHandler module.Package EventHandler; sub new { my $class = shift; my $self = { EVENT_ID => $event_count, EVENT_CAT => shift, EVENT_STATUS => "current", EVENT_COMPONENT => undef, EVENT_START_TIME => undef, EVENT_END_TIME => undef, EVENT_STATE => "Unknown", EVENT_START_LOCATION=> undef, EVENT_END_LOCATION => undef, EVENT_RECOVERED_BY => undef, }; bless( $self, $class ); $event_count++ ; return $self; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Inheritance- Sub class instance variables
by creamygoodness (Curate) on Aug 27, 2009 at 15:36 UTC | |
|
Re: Inheritance- Sub class instance variables
by NetWallah (Canon) on Aug 27, 2009 at 18:15 UTC |