in reply to change case
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
|
|---|