2009/10/27 Majian :
> Hello,all:
> I had a question about the perl hash case insensitive .
>
> And I had this script :
> ==
> #!/usr/bin/perl
> use warnings;
> %courses = (
> "2CPR2B" => "C Language",
> "1UNX1B" => "Intro to Uni
use uc() to convert to upper case (see below): chomp ($num = uc());
-Original Message-
From: Majian [mailto:jian...@gmail.com]
Sent: Tuesday, October 27, 2009 12:50 PM
To: Perl Beginners
Subject: About the hash case insensitive ~~~
Hello,all:
I had a question about the perl hash case ins
Thanks all ~
when I type this command "perldoc -f uc", then find this :
uc EXPR
uc
Returns an uppercased version of EXPR. This is the internal function
implementing the "\U"
escape in double-quoted strings. Respects current LC_CTYPE locale if "use
locale" in force.
See perllocale an
On Tuesday 27 Oct 2009 13:50:16 Majian wrote:
> Hello,all:
> I had a question about the perl hash case insensitive .
>
> And I had this script :
> ==
> #!/usr/bin/perl
> use warnings;
Just a note - you're missing the "use strict;" pragma which is a big no