Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 perusing the Monastery: (7)
As of 2014-07-12 02:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (238 votes), past polls