⭐
in reply to
How do I remove control characters?
Try
perldoc perlop
and look for the transliteration operator.
tr/\040-\176/ /c;
[download]
The 'c' option means complement the range.
Note: you may have to
binmode
the filehandle, depending on your OS.
Comment on
Re: How do I remove control characters?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom