jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
So, here is my main prog:package A; require Exporter ; require DynaLoader ; our ($ISA, @EXPORT, $AUTOLOADER) ; @ISA = qw(Exporter, DynaLoader) ; @EXPORT = qw(suba) ; sub suba { print "suba\n" ; } 1 ; __END__
Thanksuse A qw(suba); &suba() ; __END__
Janitored by Arunbear - replaced pre tags with code tags, to allow code extraction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: subroutine inheritance
by Fang (Pilgrim) on Apr 20, 2005 at 07:42 UTC | |
by chromatic (Archbishop) on Apr 20, 2005 at 16:42 UTC | |
by ihb (Deacon) on Apr 20, 2005 at 20:23 UTC | |
|
Re: subroutine inheritance
by johnnywang (Priest) on Apr 20, 2005 at 07:35 UTC | |
|
Re: subroutine inheritance
by ysth (Canon) on Apr 20, 2005 at 07:43 UTC | |
by dragonchild (Archbishop) on Apr 21, 2005 at 01:34 UTC |