in reply to Re^4: how to create a constant file and use it in other file
in thread how to create a constant file and use it in other file
Your module might look something like this:
package MyConst; use warnings; use strict; use base 'Exporter'; use vars qw(@EXPORT_OK %EXPORT_TAGS); @EXPORT_OK = qw($const1); %EXPORT_TAGS = (all => \@EXPORT_OK); # ...
And the module using it would begin like this:
use MyConst qw(:all);
|
---|