Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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?
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 chanting in the Monastery: (7)
As of 2014-10-24 12:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls