Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Is it possible to force MIME::Parser to extract text-files on a Windows system without the extra CR's on the end of lines?

by Anonymous Monk
on Feb 11, 2014 at 02:59 UTC ( #1074334=note: print w/replies, xml ) Need Help??


in reply to Is it possible to force MIME::Parser to extract text-files on a Windows system without the extra CR's on the end of lines?

Is it possible to force MIME::Parser to extract text-files on a Windows system without the extra CR's on the end of lines?

Probably not, but I wouldn't even bother looking :) grab Path::Tiny and/or File::Find::Rule find some target files and normalize the newlines to what you need them to be

update: OTOH, if you subclass MIME::Parser::FileUnder, you could normalize the newlines in "purgable"

So no it isn't possible to force MIME::Parser to do this with a setting but only with code

  • Comment on Re: Is it possible to force MIME::Parser to extract text-files on a Windows system without the extra CR's on the end of lines?

Replies are listed 'Best First'.
Re^2: Is it possible to force MIME::Parser to extract text-files on a Windows system without the extra CR's on the end of lines?
by WilliamDee (Initiate) on Feb 11, 2014 at 19:36 UTC

    Thank you, I was rather afraid of that. I guess that I'll have to stretch my knowledge and see how bad a job that I can manage.

    Cheers!
    William