devgoddess has asked for the wisdom of the Perl Monks concerning the following question:
I have a rather odd question, I'm afraid, and I haven't been able to really find any information pertaining to it. I have written a script that uses a hard-coded directory path, the Windows system directory, to locate a file to modify. On some of my client's servers, the system path is under c:\WINDOWS, but on other servers it's under c:\WINNT. I would think the easiest way to handle this discrepancy would be to use the %SystemRoot% variable under Windows. However, I'm afraid Perl sees it as a hash. I get a syntax error on that line.
Anyone know how to force a Perl script to use the Windows default system path?
Dev Goddess
Developer / Analyst / Criminal Mastermind
"Size doesn't matter. It's all about speed and performance."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Window System Path Variable in Perl Script
by NetWallah (Canon) on Mar 14, 2004 at 23:55 UTC | |
by devgoddess (Acolyte) on Mar 15, 2004 at 00:01 UTC | |
by Anonymous Monk on Mar 15, 2004 at 04:56 UTC | |
by devgoddess (Acolyte) on Mar 15, 2004 at 15:17 UTC | |
by Joost (Canon) on Mar 15, 2004 at 21:04 UTC | |
| |
|
Re: Using Window System Path Variable in Perl Script
by bart (Canon) on Mar 15, 2004 at 01:46 UTC | |
by devgoddess (Acolyte) on Mar 15, 2004 at 02:22 UTC |