in reply to update package question
See the various OO-Tutorials for more about subclassing.package My::Foo::Parser; use base (Foo::Parser); sub new { my $class = shift; my $self = $class->SUPER::new (@_); #do your own constructor_code here return $self; } sub method { my $self = shift; my $complexHash = $self->SUPER::method(); #do your own stuff here return $complexHash; }
|
|---|