That solves your immediate problem. However, you may want to heed the advice in What not to Export:package Config; use strict; use warnings; our (@ISA,@EXPORT,$VERSION,$test); use Exporter; @ISA=qw(Exporter); @EXPORT=qw($test DEFAULT_LOCAL_PATH ); $VERSION=0.01; use constant DEFAULT_LOCAL_PATH=>'something here'; $test='hello'; 1;
Exporting variables is not a good idea. They can change under the hood, provoking horrible effects at-a-distance, that are too hard to track and to fix. Trust me: they are not worth it.
In reply to Re: Exporter problem
by toolic
in thread Exporter problem
by saintex
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |