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."
In reply to Using Window System Path Variable in Perl Script by devgoddess
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |