develooper Front page | perl.beginners | Postings from April 2002

Re: use of HTML::Parser, HTML::FormatText

Thread Previous
From:
drieux
Date:
April 5, 2002 08:19
Subject:
Re: use of HTML::Parser, HTML::FormatText
Message ID:
E8732250-48B0-11D6-BEE8-0030654D3CAE@wetware.com

On Thursday, April 4, 2002, at 11:46 , M z wrote:
[..]
> $tree = HTML::Tree->new();
> $tree->parse_file(<X>);
> print X1 "$tree\n";
[..]

Wow - had not even thought about doing the 'open' by hand.

I had merely taken a list of files from the command line
and let the 'tree' open and parse them.

I'd also use
	$tree->dump;

if all you want is to see how the tree falls out.

cf: perldoc HTML::TreeBuilder


ciao
drieux

---


Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About