in reply to HTML::TableExtract - Easy Way To Tell If It Found A Table?
G'day jdlev,
"I'm really struggling with ..."
I don't think pasting the first block of code that appears in the SYNOPSIS of the HTML::TableExtract documentation really involves any particular effort. It certainly doesn't equate to struggling!
You're going to need to read and understand the documentation. Blindly copying code, and expecting it to perform whatever task you're thinking of, isn't going to work.
The truth of
scalar $te->tables
will tell you whether any tables were found using the supplied headers criteria.
You'll need to explain what you mean by "any legitimate tables". Possibly, the truth of
scalar @{($te->tables)[0]->rows}
is what you want.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::TableExtract - Easy Way To Tell If It Found A Table?
by jdlev (Scribe) on Sep 26, 2013 at 18:29 UTC | |
by kcott (Archbishop) on Sep 26, 2013 at 21:27 UTC |