in reply to Re^4: HTML::TableExtract (parse table column from an HTML page)
in thread HTML::TableExtract (parse table column from an HTML page)

Change your second line to:

use HTML::TableExtract qw( tree );

You also need to change your print line to:

print $tree->cell(0,0)->as_text;

Replies are listed 'Best First'.
Re^6: HTML::TableExtract (parse table column from an HTML page)
by cafaro (Novice) on Oct 07, 2007 at 12:50 UTC
    I'm still getting an error with these modifications: "Can't call method "tree" on unblessed reference"
      The only reason you'd get that is if $table is not returned from $te->first_table_found.

      Try this to see whether HTML::TableExtract (which ISA HTML::Parser) has correctly parsed the HTML:

        $te->parse($content) || die "couldn't parse HTML\n";

      -David

        My code didn't died while parsing the content.
      Well it works for me (whereas with your code I get the same error as you).