kireol
RealPoor Master of Posts

Joined: 02 Aug 2003 Posts: 9517
Location: Royal Oak, MI
|
Posted: 12/10/04 - 15:45 Post subject: Any Perl programmers?
|
|
|
I am having trouble figuring out the complexities of perl variables and how the referencing works. I've tried reading the perldoc on reftut. Any help here would be appreciated.
I have the following code and I need to pull out the amount in the tables....
| Code: |
$tes = new HTML::TableExtract(headers => [qw(Summer)]);
$tes->parse($mech->content());
#and then I'm trying to figure out how to grab the values....
foreach $ts ($tes->table_states) {
foreach $row ($ts->rows)
{
print $row->[1],"999\n";
}
}
|
Summer appears in 2 tables at the same depth. and there are some empty fields as well. The amount will always be in the same position in the tables. Please help
| Code: |
Table (2,10):
^M
^M
$1,485.14^M
^M
Table (2,13):
^M
^M
$1,623.57^M
^M
|
|
|