in reply to ChAnGiNg CaSe of forms before they are submitted?
Or you could use s/\b(\w)(\w+)\b/\U$1\L$2/g to force things into sentance case.while (<DATA>) { chomp; print $_, ': ', (length != tr/A-Z/A-Z/ ? 'ok' : 'not ok'), "\n"; } __DATA__ blah BLAH Blah
gav^
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: ChAnGiNg CaSe of forms before they are submitted?
by jmmorse (Initiate) on Apr 21, 2002 at 03:10 UTC | |
by gav^ (Curate) on Apr 21, 2002 at 03:22 UTC | |
| |
|
here is an example
by jmmorse (Initiate) on Apr 21, 2002 at 03:18 UTC |