$line
To make the whole line upper case: $line = uc;
uc;
To force each word to be lower case, with the first letter upper case: $line =~ s/(\w+)/\u\L$1/g;