Skip to content
Aussieveedubbers

perl jam (hate this assignment)

0 likes
Share Share on Facebook Share on X Share on Reddit

amazer kombi pilot

3,187 posts · joined Aug 2002 ·

#154964
how do I convert a word to Initial cap rest lower case.
Chris.... kombi pilot, oval dreamer... finisher #26971 2005 city to surf

modulus Veteran Volks Folk

2,009 posts · joined Jul 2003 ·

#154969
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
Peter Hill
1975 Type 2 Double Cab
modulus.com.au