in reply to Re: optimizing a parser running HTML::TableExtract to fetch only some labels and values [row by row]
in thread optimizing a parser running HTML::TableExtract to fetch only some labels and values [row by row]



Well. probably i can do the following, to get rid of the uninitialized value warnings?
Some of the table cells are empty so we can do a test for them or filter them out. Like this for example:

foreach my $table ( $te->tables ) { foreach my $row ($table->rows) { my @values = grep {defined} @$row; print " ", join(',', @values), "\n"; } }


Well another thing we can do: we could also outright and disable warnings for this particular blocks with no warnings ' uninitialized', but well it is generally not a good practice.

Watcha think !?
  • Comment on Re^2: optimizing a parser running HTML::TableExtract to fetch only some labels and values [row by row]
  • Download Code