in reply to More Efficient Subroutine
$string =~ tr/0-9A-Za-z/a-mN-ZA-Mn-z0-9/;
That's certainly not an exact match for your substitution cipher, but it's a solution of the tr/// type that tilly mentioned.