----- Original Message -----From: Maurício AmorimTo: embperlSent: Monday, February 10, 2003 2:39 AMSubject: Question about Exported symbols
I have two modules with cross dependency.
Some of type:
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
# set the version for version checking
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw(f1 f2);
%EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
# your exported package globals go here,
# as well as any optionally exported functions
@EXPORT_OK = qw();
I am having some problems about undefined subroutine when the use is before the BEGIN clause.
Any body know because it occurr ?
I can always export symbols before use modules, same when the export is inside of BEGIN clause ?
When the use is how showed above, the error not occurr.
I am exporting many symbols with @EXPORT.
Any body suggest an better use of this situation ?
Thank you. Mauricio