http://www.perlmonks.org?node_id=486276


in reply to How Do I Use the tr Function's 'c' Option?

When in doubt, trust the actual Perl documentation over any other website. Type "perldoc perlop" at your command line.

The issue with the unofficial documentation you found is that tr does not take special regular expression escapes like "\d" or bracketed classes like "[abc]" in its arguments.

$string =~ tr/0123456789/ /c;
It does support ranges, but use no brackets. Shortcut the above with the special hyphen:
$string =~ tr/0-9/ /c;

--
[ e d @ h a l l e y . c c ]