datarecall has asked for the wisdom of the Perl Monks concerning the following question:

Hello, Trying to figure out why this doesnt find the table with the class of details:
while (my $token = $stream->get_tag("table")){ print $d->Dump; print $token->[2]{class}; if($token->[2]{class} eq 'details'){ print $stream->get_trimmed_text("/table"); } }

Replies are listed 'Best First'.
Re: Getting Data from html table
by Anonymous Monk on Mar 18, 2009 at 19:12 UTC
Re: Getting Data from html table
by wfsp (Abbot) on Mar 19, 2009 at 10:16 UTC
    See the docs for get_tag() and then change both cases of [2] to [1].