Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Re: Comparing lower to upper case

by joshua (Pilgrim)
on Jun 11, 2002 at 19:50 UTC ( [id://173643]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Comparing lower to upper case
in thread Comparing lower to upper case

However, it does change this: 7f8954 into 7F8954.
What? I thought that's what you wanted it to do...

SORRY! It should say that it does NOT convert 7f8954 to 7F8954
I'm confused now. You mean $fields[0] = uc($fields[0]); isn't converting 7f8954 to 7F8954?

$fields[0] = "7f8954"; $fields[0] = uc($fields[0]);

$fields[0] should now have a value of "7F8954"

$fields[0] =~ tr/a-z/A-Z/; will also work.

Joshua

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-23 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found