--- David Gilden <[EMAIL PROTECTED]> wrote:
> The following uppercase'S the whole string, when all I want is the
> first letter.
> sub uppercase{
> ($s) = @_; return uc($s); # works but caps the whole string
> }
Others have already said to use ucfirst. =o)
> lastly, in this hash of hashs..
>
replace uc with ucfirst.
Wags ;)
-Original Message-
From: David Gilden [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 10:28
To: [EMAIL PROTECTED]
Subject: upper-casing the first char & hashs of hashs
Hello,
The following uppercase'S the whole string, when all I want i
use ucfirst instead of uc
-Original Message-
From: David Gilden [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:28 PM
To: [EMAIL PROTECTED]
Subject: upper-casing the first char & hashs of hashs
Hello,
The following uppercase'S the whole string, when all I want is the first
l