TASdvlper has asked for the wisdom of the Perl Monks concerning the following question:
Say I have a array of words:
Is there a regex I can do to make sure each word starts with a capital letter ? So, my new array would be.my @array = qw ( foo bar foobar barfoo 1 2 3 );
Thanks ....my @array1 = qw ( Foo Bar Foobar Barfoo 1 2 3 );
janitored by ybiC: Corrected misspelling in title for better searching
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Capitalize the 1st letter of each word
by Zaxo (Archbishop) on Jan 15, 2004 at 20:06 UTC | |
by flatline (Novice) on Jan 15, 2004 at 21:13 UTC | |
Re: Capitalize the 1st letter of each word
by ysth (Canon) on Jan 15, 2004 at 19:56 UTC | |
Re: Capitalize the 1st letter of each word
by atcroft (Abbot) on Jan 15, 2004 at 19:56 UTC | |
by mcogan1966 (Monk) on Jan 15, 2004 at 20:02 UTC | |
by BrowserUk (Patriarch) on Jan 15, 2004 at 20:29 UTC | |
Re: Capitalize the 1st letter of each word
by KPeter0314 (Deacon) on Jan 15, 2004 at 19:52 UTC | |
Re: Capitalize the 1st letter of each word
by thelenm (Vicar) on Jan 15, 2004 at 19:56 UTC |