by Jeremy Canfield | Updated January 25th, 2019
In this example, the $foo variable contains "hello world".
my $foo = "hello world";
The ucfirst (upper case first) operator can be used to update the first character to be upper case. In this example, the value to be "Hello world".
$foo = ucfirst($foo);