Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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?
[choroba]: Good morning, if a bit rainy
[marto]: life is a struggle :P I'm glad the GPW went well.
[Corion]: Hi choroba! Yeah, I brought the rain with me from Hamburg
[Corion]: marto: As am I ;) And we got two interested locations for next year, Munich and Cologne maybe, which is great as well. Not Berlin though ;)
[marto]: damn

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2017-06-29 08:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (655 votes). Check out past polls.