my $str = "1234"; my $ss = reverse substr($str, 2); print $ss;