Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Capitalize the 1st letter of each word

by ysth (Canon)
on Jan 15, 2004 at 19:56 UTC ( [id://321651]=note: print w/replies, xml ) Need Help??


in reply to Capitalize the 1st letter of each word

Not sure if you mean a regex to apply to your perl source to change the code or something to put in your code to change @array1.

If the latter,

my @array1 = map ucfirst, @array;
does it; no regex necessary.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-25 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found