If you hit the Library, under Perl Functions, Alphabetical, you'll find ucfirst() and lcfirst(), which will upper- or lower-case (respectively) the first character of a given word. So you could do something along the lines of:
my @array = qw( foo bar foobar barfoo 1 2 3 ); foreach my $i (0 .. $#array) { $array[$i] = ucfirst($array[$i]); }
I suspect a regex in this case is actually overkill.... HTH....
In reply to Re: Capitalize the 1st letter of each word
by atcroft
in thread Capitalize the 1st letter of each word
by TASdvlper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |