anbutechie has asked for the wisdom of the Perl Monks concerning the following question:
Test_Exporter.pl isrequire Exporter; @ISA = qw(Exporter); @EXPORT =qw\fun1 fun2\; @EXPORT_OK = qw\fun3\; @EXPORT_FAIL= qw\fun4\; sub fun1{print "\nfun1";} sub fun2{print "\nfun2";} sub fun3{print "\nfun3";} sub fun4{print "\nfun4";}
Output isuse Module; fun1; fun2; fun3; fun4;
Regards,require Exporter; @ISA = qw(Exporter); @EXPORT =qw\fun1 fun2\; @EXPORT_OK = qw\fun3\; @EXPORT_FAIL= qw\fun4\;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporter Module
by ELISHEVA (Prior) on Mar 11, 2009 at 09:55 UTC | |
|
Re: Exporter Module
by Corion (Patriarch) on Mar 11, 2009 at 09:56 UTC | |
|
Re: Exporter Module
by shmem (Chancellor) on Mar 11, 2009 at 13:48 UTC | |
|
Re: Exporter Module
by leslie (Pilgrim) on Mar 11, 2009 at 13:19 UTC | |
|
Re: Exporter Module
by jethro (Monsignor) on Mar 11, 2009 at 13:30 UTC | |
|
Re: Exporter Module
by targetsmart (Curate) on Mar 11, 2009 at 10:24 UTC |