Re: Using System to read mixed cased environment variables on Windows
- From: peng.kyo@xxxxxxxxx (Jeff Peng)
- Date: Sat, 28 Jun 2008 11:49:54 +0800
On Sat, Jun 28, 2008 at 1:52 AM, ThierryLam <lamthierry@xxxxxxxxx> wrote:
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(...)?
Could use a regex, but maybe not a smart way.
if ($envname =~ /^ProgramFiles$/i) {
$envname = 'ProgramFiles';
}
--
Regards,
Jeff. - Peng.Kyo@xxxxxxxxx
.
- 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: Limiting Toke::Parser
- Next by Date: Re: Pass a wild card argument in Win32
- Previous by thread: 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):