- or download this
package Tiger;
use base qw(Mammal Bomb);
- or download this
sub Tiger::explode {
my $self = shift;
$self->Bomb::explode;
}
- or download this
sub new {
my ($class, $data) = @_;
# deliberately simplistic!
...
my $self = shift;
$self->{_bomb}->explode;
}
- or download this
sub set_timer {
my $self = shift;
$self->Bomb::set_timer;
...
my $self = shift;
$self->Bomb::disarm;
}