Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Switching Between Development and Production Environmentsby traveler (Parson) |
on Oct 06, 2003 at 22:51 UTC ( [id://297109]=note: print w/replies, xml ) | Need Help?? |
Since you commented above that this was a "web app", you can use the SERVER_SOFTWARE CGI environment variable to discover the server type and/or OS (the latter if you are running, say, Apache on both platforms). You can use that information to decide where to look for a config file, or the datafile itself, presumably.
HTH, --traveler
In Section
Seekers of Perl Wisdom
|
|