Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-31 03:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls