in reply to Re^2: map and grep or clear code?
in thread map and grep or clear code?

Even something like:

$filter_clean =~ tr/A-Z/22233344455566677778889999/;

ought to do.