Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Changing to Lowercase Except the First Letter

by jynx (Priest)
on Jan 30, 2001 at 02:19 UTC ( [id://55100]=note: print w/replies, xml ) Need Help??


in reply to Changing to Lowercase Except the First Letter


In this case it's probably best to let perl do the task for you using the lc and ucfirst functions. For an example:
$firstname = ucfirst lc $firstname; $lastname = ucfirst lc $lastname;
Think for a little bit and you can probably think of a loop to do this if you have a few values you need to do operate on.

HTH,
jynx

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-28 10:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found