 |
Aussieveedubbers General Chit Chat perl jam (hate this assignment) |
|
 |
|
|
|
| [ Total Views: 400 | Total Replies: -1 | Thread Id: 20918 ] |
|
|
amazer
Bishop of Volkswagenism
kombi pilot
    
Posts: 3187
Threads: 308
Registered: August 26th, 2002
Member Is Offline
Location: Wollongong
Theme: UltimaBB Pro Blue ( Default )
Mood: Peachy!
|
| posted on March 31st, 2004 at 11:34 PM |
|
|
perl jam (hate this assignment)
how do I convert a word to Initial cap rest lower case.
Chris.... kombi pilot, oval dreamer... finisher #26971 2005 city to surf

|
|
|
modulus
A.k.a.: Peter Hill
Veteran Volks Folk
   
Posts: 2009
Threads: 76
Registered: July 1st, 2003
Member Is Offline
Location: Melbourne
Theme: UltimaBB Pro White
Mood: modular
|
| posted on April 1st, 2004 at 12:04 AM |
|
|
To force each word in a line to be lower case, with the first letter upper case:
$line =~ s/(\w+)/\u\L$1/g;
hth
|
|
|
|
 |
Aussieveedubbers General Chit Chat perl jam (hate this assignment) |
|
 |
|
 |
Powered by GaiaBB, © 2011 The GaiaBB Group
(C) 2001-2025 Aussieveedubbers
[ Queries: 40 ]
[ PHP: 0.8% - SQL: 99.2% ]
|
|
|