Skip Menu |

This queue is for tickets about the HTML-TableExtract CPAN distribution.

Report information
The Basics
Id: 6952
Status: resolved
Priority: 0/
Queue: HTML-TableExtract

People
Owner: MSISK [...] cpan.org
Requestors: griscom [...] suitable.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.08
Fixed in: (no value)



Subject: If no tables were found, then method first_table_state_found returns an unblessed hash
Using HTML::TableExtract 1.08, HTML::Parse 3.36, Perl v5.8.1-RC3. Create a TableExtract object, specifying a table in any way you wish. Call parse_file with HTML code that doesn't include such a specified table. Then, call first_table_state_found(). The function is supposed to return a TableState object, but it instead returns an unblessed, empty hash. This is unexpected, and takes some work to check for; it would be much better if first_table_state_found() had returned undef, or perhaps even a TableState object that knew it didn't refer to a table.