Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Best way to Download and Process a XML file

by tobyink (Abbot)
on Sep 24, 2012 at 22:30 UTC ( #995447=note: print w/ replies, xml ) Need Help??

in reply to Best way to Download and Process a XML file

150 GB? Ouch.

AnyEvent::HTTP should allow you to issue an HTTP request, and process it a chunk at a time, while it arrives, without having to save it anywhere.

And XML::Twig can parse XML chunk by chunk.

Pairing the two you ought to be able to do this without temporary files. Exactly how to do it, I can't help you. I have limited experience with AnyEvent::HTTP; and virtually none with XML::Twig.

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Comment on Re: Best way to Download and Process a XML file

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995447]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2015-10-10 07:10 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (255 votes), past polls