Re: About the hash case insensitive ~~~

2009-10-27 Thread Dermot
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

RE: About the hash case insensitive ~~~

2009-10-27 Thread Hack, Gabi (ext)
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

Re: About the hash case insensitive ~~~

2009-10-27 Thread Majian
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

Re: About the hash case insensitive ~~~

2009-10-27 Thread Shlomi Fish
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