[EMAIL PROTECTED] wrote:
> Sorry for the novice question, but can someone point me in the direction
> of stripping all non printing non ascii characters from a file? The idea
> is to take microsoft email and remove all the crud so as to create a
> simple text file for further parsing.
> thanks
Slurp the file or read it line by line and use a RE:
$file =~ s/[:^print:]+//gs;
$line =~ s/[:^print:]+//g;
It would be nice to know what these unprintable characters
actually are and why they're there.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs