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; }
In reply to Re: update package question
by holli
in thread update package question
by EchoAngel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |