in reply to How do I capture the last character in a string?

Why substr() of course
my $str = "a string"; print substr($str, -1); __output__ g
You could also use regex, but I imagine (see. hope) this would be more efficient.
HTH

_________
broquaint