Re: Using System to read mixed cased environment variables on Windows
- From: rob.dixon@xxxxxxx (Rob Dixon)
- Date: Sat, 28 Jun 2008 13:43:47 +0100
ThierryLam wrote:
On Windows XP Pro 32 bit, if I want to output environment variables
PYTHON or ProgramFiles, I use the set command which output the
following:
C:\set PYTHON
PYTHON=C:\Python24\python.exe
C:\set ProgramFiles
ProgramFiles=C:\Program Files
If I used Perl 5.003_07 and use the system subroutine to show the
environment variables, I get the following. Perl script is:
system("set PYTHON");
system("set ProgramFiles");
Output is:
PYTHON=C:\Python24\python.exe
PROGRAMFILES=C:\Program Files
You'll notice that through system, the environment variable
ProgramFiles is all in upper case. Is there a way to preserve the
mixed case of the environment variable through system(...)?
You urgently need to update your version of Perl. Version 5.3 is nearly twelve
years old now and you will find very few people running it.
The problem you described doesn't appear on Version 5.8.
Rob
.
- References:
- Using System to read mixed cased environment variables on Windows
- From: ThierryLam
- Using System to read mixed cased environment variables on Windows
- Prev by Date: Re: Limiting Toke::Parser
- Next by Date: Re: Limiting Toke::Parser
- Previous by thread: Re: Using System to read mixed cased environment variables on Windows
- Next by thread: Re: Using System to read mixed cased environment variables on Windows
- Index(es):
Relevant Pages
|