in reply to Config files
# Use the appropriate syntax for your module: my $root = ... my $code = ... my $include = ... my $lib = ... foreach ($code, $include, $lib) { s/%ROOT%/$root/gi; # -or- # # $code =~ s/%([A-Z][A-Z_]*)%/ # if ($1 eq 'ROOT') { # $root # } elsif (exists($ENV{$1})) { # $ENV{$1} # } else { # $1 # } # /eg }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Config files
by sparkel (Acolyte) on Dec 07, 2004 at 00:09 UTC | |
by ikegami (Patriarch) on Dec 07, 2004 at 02:18 UTC |