hello all (and happy new year), I'm a beginner with Perl since yesterday, I've searched the web and FAQs a lot and found a module called HTML::TableExtract that seems to be doing what I need, namely extracting data from a table of a given HTML file.
The problem is I don't understand the example provided in the synopsis on CPAN. It says this: # Example: Using column header information. # Assume an HTML document with tables that have "Date", "Price", and # "Cost" somewhere in a row. The columns beneath those headings are # what you want to extract. They will be returned in the same order as # you specified the headers since 'automap' is enabled by default. use HTML::TableExtract; $te = HTML::TableExtract->new( headers => [qw(Date Price Cost)] ); $te->parse($html_string); I understand that an object is created called $te but that's about it (I've done a little c++ long ago). My questions are: 1) where is the data exactly (in $html_string maybe?) and how can I manipulate it, say to write the first column in a text file? 2) where shall I specify the names of my input HTML files (I have a bunch of them, each contains one table). Thank you and best wishes. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/