And the output is -#!/usr/local/bin/perl -w use strict; while (<DATA>) { s/(\w+)/\u\L$1/g; print "$_"; } # or just a one liner - # s/(\w+)/\u\L$1/g, print for <DATA>; __DATA__ foo bar ned KelLy james bond
Foo Bar Ned Kelly James Bond
In reply to Re: change case
by Roger
in thread change case
by texuser74
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |