Sprad has asked for the wisdom of the Perl Monks concerning the following question:
I have a script that reads data from a configuration file. I'd like to remove all hard-coding from the script and put anything that might need to be changed into the config file. Unfortunately, the one bit of data I can't figure out how to move is... the path to the config file. It won't necessarily be in the same directory as the script. And I'd rather not require that as a parameter to the script. Is there a way around this one?
---
A fair fight is a sign of poor planning.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Avoiding hard-coding
by Abigail-II (Bishop) on Nov 15, 2003 at 00:17 UTC | |
Re: Avoiding hard-coding
by hossman (Prior) on Nov 14, 2003 at 23:47 UTC | |
Re: Avoiding hard-coding
by liz (Monsignor) on Nov 14, 2003 at 23:19 UTC | |
by Nkuvu (Priest) on Nov 14, 2003 at 23:27 UTC | |
Re: Avoiding hard-coding
by QM (Parson) on Nov 14, 2003 at 23:29 UTC | |
Re: Avoiding hard-coding
by mirod (Canon) on Nov 14, 2003 at 23:38 UTC | |
Re: Avoiding hard-coding
by pg (Canon) on Nov 14, 2003 at 23:23 UTC | |
Re: Avoiding hard-coding
by coreolyn (Parson) on Nov 17, 2003 at 13:12 UTC |
Back to
Seekers of Perl Wisdom