jeanluca has asked for the wisdom of the Perl Monks concerning the following question:
But when I tried to use it like:our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $Verbose, $FOR +MAT) ; @ISA = qw(Exporter); @EXPORT = (); @EXPORT_OK = qw( sub1 sub2 ) ; %EXPORT_TAGS = ( DEFAULT => [qw(&sub1)], Both => [qw(&sub1 &sub2)]); $VERSION = 1.0 ; $Verbose = 0 ;
I cannot use sub1. However when I douse MyModule qw(:DEFAULT)
both subs are available.use MyModule qw(:Both)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: @EXPORT_TAG not working
by Fletch (Bishop) on Mar 13, 2006 at 15:33 UTC | |
|
Re: @EXPORT_TAG not working
by japhy (Canon) on Mar 13, 2006 at 15:35 UTC |