Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Parse content in HTML::DOM

by jai_dgl (Beadle)
on Mar 14, 2008 at 10:13 UTC ( [id://674173]=perlquestion: print w/replies, xml ) Need Help??

jai_dgl has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I have a HTML content in a variable ( $html ), I have to parse this content in HTML::DOM. It had successfully worked form file using parse_file(), as well as file handle using $html = do { local $/; <IN> }; $dom_tree->write($Entire_file); $dom_tree->close; How Do I parse using a variable with the entire HTML, my variable is $html ( with HTML content ) Thanks

Replies are listed 'Best First'.
Re: Install HTML::Tidy
by marto (Cardinal) on Mar 14, 2008 at 10:20 UTC
    hi jai_dgl,

    If you are using ActiveState Perl on Windows you should use ppm to install the modules, on linux use cpan. For further information check out Installing Modules from the tutorials section of this site.

    Hope this help

    Martin

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://674173]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-24 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found