in reply to Require Centralized Variables
Instead of require-ing the variables from conf.pl why don't you use one of the many modules that let you store and retrieve variables, such as Storable, FreezeThaw, Data::Denter, Data::DumpXML, XML::Simple... or just use your own module, which would then let you export variable as well as functions.
In any case you should pay extra attention to where the data file is located (outside of the web tree is a good idea) and what its permissions are (probaly not writeable by the web server user).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Require Centralized Variables
by chromatic (Archbishop) on Nov 20, 2002 at 17:47 UTC | |
|
Re^2: Require Centralized Variables
by adrianh (Chancellor) on Nov 20, 2002 at 20:10 UTC |