Board Logo

perl jam (hate this assignment)
amazer - March 31st, 2004 at 11:34 PM

how do I convert a word to Initial cap rest lower case.


modulus - 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