-----Original Message----- From: Scott Taylor [mailto:[EMAIL PROTECTED] Sent: vendredi 15 août 2003 23:20 To: [EMAIL PROTECTED] Subject: Case conversions
Any one have or know of a function to convert ugly "NAME, USER" to "User Name"?
Strange email thingy you have, putting the reply inline with the original and forcing it to the top.
$var = 'NAME, USER'; print "$var\n"; @var = reverse split(', ',$var); print "@var\n"; $var = join(' ',(ucfirst lc $var[0],ucfirst lc $var[1])); # whitout the comma this time print "$var\n";
This works well, too, and join seems to fix the problem with names having "'"s in them.
Thanks.
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]