[EMAIL PROTECTED] wrote:
> 
> Here is a basic question on %ENV hash. I gave a pronto statement as thus:
> 
> perl -e "print $ENV{ComputerName};"
> 
> and it printed the correct information.
> 
> On my MS-DOS prompt when I gave the SET command, I noticed that the
> environmental variable for ComputerName to be denoted as COMPUTERNAME
> (all-upper case). I am wondering how I am getting the right answer when I
> gave the hash key as 'ComputerName' and not as 'COMPUTERNAME' as Hash Keys
> are case-sensitive.
> 
> Is there an implicit case-casting going on underneath?

Yes, but not in perl.
It's DOS which is case-insensitive.

Look simple what happens when you write SET ComputerName at the DOS
prompt instead of SET COMPUTERNAME.

Greetings,
Andrea

PS: The best is of course, to check case sensitivity with fOrMaT c:.
Then there's enough space for an operating system :-)

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to