my $string = "foobar"; my $letter = substr( $string, 42, 1 );