in reply to Changing case on a word boundary
my $str = "YOSEMITE SAM"; $str =~ s/(\w+)/\u\L$1/g;
Note that \w+ might not match your definition of word, but you should be able to modify it to suit.
-- Dan
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Changing case on a word boundary
by blue_cowdawg (Monsignor) on Oct 28, 2002 at 21:07 UTC |