use strict;
use ordnance;
my $T= new ordnance();
$T->flip_jeep(); sleep 2;
$T->firecracker();
####
package ordnance;
use stock_footage;
@ISA=qw(stock_footage);
sub new
{
my $this = shift;
my $class = ref($this) || $this;
my $self = {};
bless $self, 'ordnance';
}
sub flip_jeep
{
my $this = shift;
my $class = ref($this) || $this;
print "pull grenade pin\n"; sleep 2;
$class->SUPER::flip_jeep();
}
sub firecracker
{
my $this = shift;
my $class = ref($this) || $this;
print "light fuse\npsssss....\n"; sleep 2;
print "Bang! Bang! Bang!\n";
$class->SUPER::distraction();
}
1;
####
package stock_footage;
sub flip_jeep
{
print "And the jeep flies into the air and flips!\n";
}
sub distraction
{
print "And the guards are momentarily distracted!\n";
}