dcb0127 has asked for the wisdom of the Perl Monks concerning the following question:
Code above continues to give me an error message: Use of uninitialized value in subroutine entry at table.pl line 12 How do I go about just getting some code that'll extract information from a html table within a table.#!/usr/bin/perl -w use lib qw( ..); use HTML::TableExtract; use LWP::Simple; use Data::Dumper; my $te = new HTML::TableExtract( depth=>3, count=>0, gridmap=>0); my $content = get("http://www.computerjobs.com"); $te->parse($content); foreach $ts ($te->table_states) { foreach $row ($ts->rows) { print Dumper $row; # print Dumper $row if (scalar(@$row) == 2); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML::TableExtract
by Solo (Deacon) on Sep 16, 2002 at 17:35 UTC | |
by dcb0127 (Novice) on Sep 16, 2002 at 18:24 UTC | |
|
Re: HTML::TableExtract
by Aristotle (Chancellor) on Sep 16, 2002 at 17:36 UTC |