bazz
07-13-2005, 05:23 PM
Hi,
$variable = "Full name";
I need to susbstitute the first letter in each word, to make sure that they are upper case.
I tried (seemingly feebly), $variable=~ s/[A-Z]/[a-z]/g; but only the first part works. It recognises the upper case letter but then just does a literal substitution for F with [a-z]. :(
please help.
Bazz
$variable = "Full name";
I need to susbstitute the first letter in each word, to make sure that they are upper case.
I tried (seemingly feebly), $variable=~ s/[A-Z]/[a-z]/g; but only the first part works. It recognises the upper case letter but then just does a literal substitution for F with [a-z]. :(
please help.
Bazz