datarecall has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
2nd day on perl so please forgive me if I am doing something stupid here. I am trying to get the table with the class ="details" then trying to get the text of every td within that table:while (my $table = $stream->get_tag("table")){ print $table->[1]{class}; if($table->[1]{class} eq 'details'){ print "HERE"; while(my $row = $table->get_tag("td")){ print $table->get_trimmed_text("/td"); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Toke Parser get table
by wfsp (Abbot) on Mar 17, 2009 at 15:35 UTC | |
by ikegami (Patriarch) on Mar 17, 2009 at 20:19 UTC | |
by datarecall (Initiate) on Mar 17, 2009 at 19:51 UTC | |
by ikegami (Patriarch) on Mar 17, 2009 at 20:14 UTC | |
by Anonymous Monk on Mar 17, 2009 at 20:32 UTC |