Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Uppercase First Letter w/exceptionsby Storm (Novice) |
on Aug 09, 2000 at 22:55 UTC ( [id://27143]=perlquestion: print w/replies, xml ) | Need Help?? |
Storm has asked for the wisdom of the Perl Monks concerning the following question:
Would anyone know how to work with these names to convert it to Caps where needed. ST. JOHN STEVEN MILLER O'REILY #f.e. O'REILY to O'Reily I know I can use s/(\w+)/\u\L$1/g; for the first 2, but what about the O'REILY? One of those days :) Thanks ahead of time... Storm
Back to
Seekers of Perl Wisdom
|
|