in reply to Exporter problem
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Exporter problem
by saintex (Scribe) on Jun 03, 2010 at 17:08 UTC |