1. Computing

Perl string ucfirst() function - Quick Tutorial

How to use the string ucfirst() function

From , former About.com Guide

Perl's ucfirst() function takes a string, makes the first character uppercase, and then returns the new string.
 $myName = 'andrew';
 $myUpperName = ucfirst($myName); 
First, $myName is set to a value of 'andrew', then the ucfirst() function is run on $myName. The ucfirst() function takes the first character of $myName (in this case 'a') and converts it to it's uppercase equivalent. The value of $myUpperName is then equal to 'Andrew'.

©2013 About.com. All rights reserved.