-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

what I use is aliasing a configuration variable into my main
namespace. The configuration is read from a module which is plain perl
code with all its simplicity, power and dangers if edited by
"strangers". 

It goes like this:

In the application

use vars qw!$DREAM!;
*DREAM = \$Dreamconfig::DREAM;  # Variable aus Dreamconfig her-'aliasen'
my $CSS = $DREAM->{cssdir};

and the configuration module:

use vars qw!$DREAM!;

$DREAM = {
          # cssdir und gifdir
          # CSS-Verzeichnis relativ zum Server-Wurzelverzeichnis
          cssdir => '/css',
         };
1;

The technique was described in a mod_perl article by stas bekman. It
works like a charm for me, and if I run into trouble I always check
first my configuration module with "perl -wc".

Hth, and merry christmas to all

Markus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE+CcZMxxUzQSse11ARAv7uAJ0TZyDyZGhmuTA1tTbE+6Y+q3IT3gCggVTp
4v6TgO87n0PP/T1W77RkUaQ=
=Ucdy
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to