in reply to using Sub::Install to override a module method that cannot be edited
package My::Child; use strict; use base 'My::Parent'; sub new { my $pkg = shift; my $self = $pkg->SUPER::new(@_); # call's My::Parent::new # .. add new fields, do additional things.. return $self; } 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using Sub::Install to override a module method that cannot be edited
by Anonymous Monk on Oct 07, 2007 at 04:05 UTC |