in reply to SOLVED Printing last two characters
/(.{2})$/ [download]
perl -le 'my $str="qwerty"; $str=~m/(.{2})$/; print $1;' #output ty [download]