in reply to ChAnGiNg CaSe of forms before they are submitted?
my $text = lc($text);
If you were so inclined, you could even use the 'ucfirst' function to pretty things up somewhat:
You could even 'ucfirst' just the first word in each sentence (although I'll leave that as an exercise to the reader). =-)my $result; my $text = lc($text); my @words = split(/\s+/,$text); foreach(@words){ $result .= ucfirst($_)." "; }
-beernuts
|
|---|