On Tue, August 11, 2009 1:33 am, Berler Chanan wrote:
> I wonder if there is a way to change text into camel notation style.
> Example: "hello world" should be "Hello World"

"Title case" may be the term you are looking for.

s/\b(\w)/\u$1/g

Or if there may be contractions,

s/(?<!\w')\b(\w)/\u$1/g


_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to