note that camel notation is HelloWorld without the space. a regular expression should do it , replacing the \s+(\w) with the uppercase letter uc(\1) see the /e modifier to regex
or join ucfirst qw /hello world/ -- vish 2009/8/11 Berler Chanan <[email protected]>: > Hi All, > > I wonder if there is a way to change text into camel notation style. > Example: "hello world" should be "Hello World" > > Thanks > Chanan > > _______________________________________________ > Perl mailing list > [email protected] > http://mail.perl.org.il/mailman/listinfo/perl > _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
