Helpful Information
 
 
Category: Perl/ CGI
Changing the first letter of a string variable to uppercase!

Hey,
ok argh,
like it says.. how would i change the first character of $link to a upper case if its not already?
thanks everyone.
sir p

There's actually a function that does just that... ucfirst()

So in this instance you'd do:

$link = ucfirst($link);










privacy (GDPR)