my ($first) = reverse($string) =~ /(.)$/sm;