>  From: $Bill Luebkert <[EMAIL PROTECTED]>
>  Subject: Re: Remove non-ascii character
>  Sent: Sep 21 '06 18:37
>  
>  [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.

Sounds as if Haze is effectively saving the (.eml or whatever) file to disk and
attempting to read text from that? 

Haze - you might investigate using win32::OLE to drive Outlook and grab the 
message text directly....or use the Mail::Outlook module which simplifies the 
interface. Available thru ppm.

HTH - Lynn.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to