in reply to ChAnGiNg CaSe of forms before they are submitted?
Assuming you've loaded the text field into $text, try
I suspect, though, that you'll need to get more sophisticated, since users WHO WANT TO SHOUT can easily jinx this by adding 1 lower case character.# if ALL CAPS (no lower case), conver to lower case if ( 0 == $text =~ tr/a-z/a-z/ ) { $text =~ tr/A-Z/a-z/; }
|
|---|