Re: Where to put Settings-Variables?



Bernd Schneider wrote:

[ snip ]
So I decided to put some stuff into modules.

The problem that I now come up with is:
Where do I put the variables?

Before I just declared them as:
my $mysql_host = 'localhost';
[ snip ]

I would put them in a config file and use one of the many config file
parsing modules on CPAN (e.g. Config::Simple).


Mike

--
Michael Zawrotny
Institute of Molecular Biophysics
Florida State University | email: zawrotny@xxxxxxxxxx
Tallahassee, FL 32306-4380 | phone: (850) 644-0069
.



Relevant Pages

  • Re: Anyone do benchmarks?
    ... >> enough skill with vi to tweak a config file (we're talking about ...
    (comp.unix.bsd.freebsd.misc)
  • Re: just got around to posting this.. (long) SMTP TRACE
    ... It looks like there is a config file somewhere that you can edit to ... basedir which is where the debugging information will be written. ... no community for this tool then perhaps you would be better off with a ...
    (perl.beginners)
  • Re: Linux, fast
    ... I'm not quite a beginner, having just steered a Sid machine through an ... upgrade disaster in xorg, ... config file because it had been customised, and a V6 config file on V7 ...
    (uk.comp.os.linux)
  • RE: about WiFi cards
    ... > RedHat ... It's already in the config file for FC2. ...
    (Fedora)