package DeviceEventHandler; use base qw( EventHandler ); sub new { my $self = shift->SUPER::new(@_); $self->{DeviceReset} = undef; return $self; }
You have to worry about parent and child classes stomping on each other's instance vars, but that's the basic idiom for hash-based objects.
In reply to Re: Inheritance- Sub class instance variables
by creamygoodness
in thread Inheritance- Sub class instance variables
by snra_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |