in reply to first char of string?

To get the first character of a string, use substr() my $test = "Hello World!"; print substr($test,0,1);