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
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.