On Friday, August 15, 2003, at 05:09 PM, Scott Taylor wrote:

$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.

Na, it's the split() that fixed that. ;)


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to