[ PerlMonks Discussion is for discussions about PerlMonks. I moved your post to Seekers of Perl Wisdom ]
/[[:cntrl:]]/ is equivalent to /[^[:^cntrl:]]/, so
# Replace everything except non-controls, CR and LF. $msg =~ s/[^[:^cntrl:]\r\n]+/ /g;
The "s" modifier is useless since "." isn't being used.
In reply to Re: CR's and other control chars
by ikegami
in thread CR's and other control chars
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |