Re: Using System to read mixed cased environment variables on Windows
- From: rvtol+news@xxxxxxxxxxxx (Dr.Ruud)
- Date: Sat, 28 Jun 2008 15:57:03 +0200
ThierryLam schreef:
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 need a newer Perl.
What does this show you?
C:> perl -wle "print qq{$_=$ENV{$_}} for keys %ENV;"
--
Affijn, Ruud
"Gewoon is een tijger."
.
- Follow-Ups:
- 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):