You could also use regex, but I imagine (see. hope) this would be more efficient.my $str = "a string"; print substr($str, -1); __output__ g
_________
broquaint
In reply to Re: How do I capture the last character in a string?
by broquaint
in thread How do I capture the last character in a string?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |