$string =~ s/(.*).{2}$/$1/; [download]
In reply to Re: String Length by thabenksta in thread String Length by ep