Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

•Re: Combine LWP::Simple with XML::LibXML to download Go exercises

by merlyn (Sage)
on Sep 19, 2003 at 15:24 UTC ( #292679=note: print w/ replies, xml ) Need Help??


in reply to Combine LWP::Simple with XML::LibXML to download Go exercises

If I'm not mistaken, you can drop the LWP::Simple from this program entirely. Instead of calling parse_html_string with the output of get on the URL, pass the URL directly to html_file, as I illustrate (somewhat obscured) in "Get O'Reilly's top 25 into Template Toolkit". The XML::LibXML engine can fetch URLs directly, because it's needed to validate DTDs.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


Comment on •Re: Combine LWP::Simple with XML::LibXML to download Go exercises

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2014-07-11 16:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (232 votes), past polls