FAQ
Author: comdog
Date: Wed Jun 28 10:50:17 2006
New Revision: 6575

Modified:
perlfaq/trunk/perlfaq4.pod

Log:
* How Do I Capitalize All The Words In A Sentence?
+ fixed missing s from s///


Modified: perlfaq/trunk/perlfaq4.pod
==============================================================================
--- perlfaq/trunk/perlfaq4.pod (original)
+++ perlfaq/trunk/perlfaq4.pod Wed Jun 28 10:50:17 2006
@@ -796,7 +796,7 @@
)
/\U$1/xg;

- $string =~ /([\w']+)/\u\L$1/g;
+ $string =~ s/([\w']+)/\u\L$1/g;

To make the whole line upper case:

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcvs-perlfaq @
categoriesperl
postedJun 28, '06 at 5:51p
activeJun 28, '06 at 5:51p
posts1
users1
websitelearn.perl.org...

1 user in discussion

Comdog: 1 post

People

Translate

site design / logo © 2018 Grokbase