Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: HTML::TableExtract - Easy Way To Tell If It Found A Table?

by jdlev (Scribe)
on Sep 26, 2013 at 18:29 UTC ( #1055878=note: print w/ replies, xml ) Need Help??


in reply to Re: HTML::TableExtract - Easy Way To Tell If It Found A Table?
in thread HTML::TableExtract - Easy Way To Tell If It Found A Table?

So basically, I could just do an if statement like:

if ($te->tables) { print "I found a table!"; }

And something as simple as that would tell me if it found a table (as long as I called the parse function first)?

I love it when a program comes together - jdhannibal


Comment on Re^2: HTML::TableExtract - Easy Way To Tell If It Found A Table?
Download Code
Replies are listed 'Best First'.
Re^3: HTML::TableExtract - Easy Way To Tell If It Found A Table?
by kcott (Abbot) on Sep 26, 2013 at 21:27 UTC
    "So basically, I could just do ..."

    Yes. Instead of typing the code into a forum, you could type it into your program.

    You could then run the program and find out what happens all by yourself.

    -- Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2015-07-31 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls