in reply to How to cut strings from the end

The matter has been covered recently: substring problem???. Only, in that occasion the OP needed the last four characters in the string ;)

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.