From: Andrea Holstein <[EMAIL PROTECTED]>
> [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.

Well ... wrong. Even the %ENV is case insensitive in Perl when running 
under Windows.

Try

        print $ENV{paTH},"\n";
        print $ENV{path},"\n";
        print $ENV{PATH},"\n";

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

Ha ha ha ... :-}

Jenda


=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
                                        --- me

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

Reply via email to