in reply to Capitalize first letter in a string?

And that's not the only way! :-) You can use some regexp too.
$a = 'haha'; $a =~ s/^([a-z])/\U$1/; print $a;

-- tune

Replies are listed 'Best First'.
RE: Re: Capitalize first letter in a string?
by frankus (Priest) on Nov 09, 2000 at 19:31 UTC
    Damn straight it's not the only way!! We code Perl goddamit!!. There is Always more than one way of doing it. :)

    --
    
    Brother Frankus.