Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Queries on HTML::TableExtract - How to parse from saved html file

by influx (Beadle)
on Aug 08, 2012 at 08:37 UTC ( #986181=note: print w/ replies, xml ) Need Help??


in reply to Queries on HTML::TableExtract - How to parse from saved html file

I don't know much about that module, but if parse_file() isn't very persistent, then perhaps you could slurp the file into a string and continue using the parse() method instead

For larger files you might be better off using File::Slurp or something

use File::Slurp 'read_file'; my $html = "/path/to/file.html"; my $str = read_file($html);

Once you've done that, then you can just parse $str as you normally would a string.


Comment on Re: Queries on HTML::TableExtract - How to parse from saved html file
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-09-17 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (89 votes), past polls