in reply to How do I capture the last character in a string?
my $str = "a string"; print substr($str, -1); __output__ g [download]
_________broquaint