Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Parsing HTML files

by ajju
on Nov 18, 2010 at 19:57 UTC ( #872339=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^2: Parsing HTML files
Re^3: Parsing HTML files
by planetscape (Canon) on Nov 19, 2010 at 05:41 UTC
Re^3: Parsing HTML files
by Tux (Monsignor) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872339]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2014-12-22 05:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls