There's more than one way to do things | |
PerlMonks |
Parse content in HTML::DOMby 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
Back to
Seekers of Perl Wisdom
|
|