Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074334]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2017-03-24 05:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (296 votes). Check out past polls.