in reply to Re: Parsing HTML files
in thread Parsing HTML files

hi Tux, I had my $html="htmlfilepath"; added to your code. Running your code is giving the below error, Use of uninitialized value in subroutine entry at C:/Perl/site/lib/HTML/TreeBuil der.pm line 121.

Replies are listed 'Best First'.
Re^3: Parsing HTML files
by planetscape (Chancellor) on Nov 19, 2010 at 05:41 UTC
Re^3: Parsing HTML files
by Tux (Canon) on Nov 19, 2010 at 07:33 UTC

    If you would have taken the time to read the documentatio, e.g. using "perldoc HTML::TreeBuilder", you should have seen, if the method name parse_content wasn't obvious enough already, that to parse a file, you should use the parse_file method.


    Enjoy, Have FUN! H.Merijn