The time now is 08/21/08 - 18:04
Log in: Username: Password:
Search forums for:
  

Any Perl programmers?

Post new topic   Reply to topic
Author Message
kireol
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 02 Aug 2003
Posts: 9517
Location: Royal Oak, MI



PostPosted: 12/10/04 - 15:45    Post subject: Any Perl programmers? Reply with quote

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
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

Related topics:
Any VB Programmers out there?