Re: Using System to read mixed cased environment variables on Windows



On Jun 29, 1:18 am, rob.di...@xxxxxxx (Rob Dixon) wrote:
.
.

All of the keys of %ENV are capitalized for Windows as the environment variable
names aren't case-sensitive.


However, I'm finding that system() honours case-preservation. From my
reply to the same thread in comp.lang.perl.misc:

C:\>set MyTest=C:\MyTest

C:\>set MyTest
MyTest=C:\MyTest

C:\>perl -e "system(\"set MyTest\")"
MyTest=C:\MyTest

C:\>set MITEST=C:\MiTest

C:\>perl -e "system(\"set MiTest\")"
MITEST=C:\MiTest

Cheers,
Rob

.



Relevant Pages

  • Re: My experiences with a Dell D620 Laptop. Part 1.
    ... Specification of the Dell. ... highlights extra key functions on the keys accessible via the Fn key. ... Powerbook and MacBook screens. ... - There are the usual irritating Intel Core Duo and 'Windows Designed ...
    (comp.sys.mac.advocacy)
  • RE: The string universal unique identifier (UUID) is invalid.
    ... when you install multiple brands of cards in Windows XP. ... The issue may be caused by a corrupt winsock or TCP/IP ... Delete corrupted registry keys and reinstall TCP/IP protocol. ...
    (microsoft.public.windowsxp.network_web)
  • Re: My experiences with a Dell D620 Laptop. Part 1.
    ... This post is to show Mac Users just what they are missing compared to a 9 month old PowerBook G4/15.4/1.6Mhz and a white MacBook. ... On a number of occasions I've opened up the machine only to find the battery is drained or find a very hot laptop in my bag. ... It has a rather tacky looking two-tone appearance around the keyboard and trackpad with the keys being a different colour to the inner silver 'ring'. ... Why couldn't these go underneath with the WIndows XP license label? ...
    (comp.sys.mac.advocacy)
  • Re: Domain Local group and Require strong. GPO Problem
    ... Microsoft MVP (Windows Server System: ... >> controller that is not capable of encrypting secure channel traffic with ... >> that all such domain controllers must be running Windows 2000 or later ... >> Session keys used to establish secure channel communications between ...
    (microsoft.public.win2000.security)
  • Re: question on capturing keys
    ... :i code a perl script to capture keys typed using Term::ReadKey and run ... Term::ReadKey only reads keystrokes on the device or file ... Unix is inherently a multiuser operating system, ... there was much more of an assumption in Windows ...
    (comp.lang.perl.misc)