jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
So, package Foo creates its own close, overriding close from SomeGeneralSubs. But after that it would like to call the close method from SomeGeneralSubs. How do I do this ?Package Foo ; use base qw(SomeGeneralSubs) ; sub close { my $obj = shift ; # its all OO # do something specific .... # now call close from 'SomeGeneralSubs' ....? } package SomeGeneralSubs ; sub close { .. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: howto call an overridden sub
by salva (Canon) on Mar 27, 2006 at 09:29 UTC | |
by jeanluca (Deacon) on Mar 27, 2006 at 09:37 UTC | |
by salva (Canon) on Mar 27, 2006 at 10:47 UTC | |
|
Re: howto call an overridden sub
by davorg (Chancellor) on Mar 27, 2006 at 09:46 UTC |