$str =~ tr|A-Za-z0-9+/| -_|; # convert to uuencoded format #### $str =~ tr|A-Za-z0-9+/| -_|;