in reply to Re: Toke Parser get table
in thread Toke Parser get table

Thanks for the response but why cant you use get tag and then test for the class the way I did it in the first post. Just wondering what I did wrong there.

Replies are listed 'Best First'.
Re^3: Toke Parser get table
by ikegami (Patriarch) on Mar 17, 2009 at 20:14 UTC
    Attributes are in ->[2], not ->[1]
      I changed it from 1 -> 2 however it is still not showing the class of the table. I appreciate all the help. c $te = HTML::TableExtract->new(); $te->parse($mech->content); print "FUCK"; while (my $table = $stream->get_tag("table")){ print $table->2{class}; if($table->2{class} eq 'details'){ print "HERE"; while(my $row = $table->get_tag("td")){ print $table->get_trimmed_text("/td"); } } } /c