You can skip the /e modifier by using the \u escape. And you don't need to capture the whole word; the first letter will do.
perl -ple 's/\b(?<![-'])(\w)/\u$1/g'
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: change case
by sauoq
in thread change case
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |