use warnings; use strict; while (<DATA>) { s/(\w+)/ucfirst lc $1/e; print; } __DATA__ BELLMONT NY NEW YORK NY
outputs:
Bellmont NY New YORK NY
In reply to Re: Capitalize only the first letter of the first word in a string
by toolic
in thread Capitalize only the first letter of the first word in a string
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |