Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: HTML::TreeBuilder scan for first table

by jeffa (Bishop)
on Jan 21, 2016 at 23:40 UTC ( #1153331=note: print w/replies, xml ) Need Help??


in reply to HTML::TreeBuilder scan for first table

Try another module like HTML::TableExtract?

use strict; use warnings; use Data::Dumper; use HTML::TableExtract; my $te = HTML::TableExtract->new( decode => 0 ); $te->parse( do{ local $/; <DATA> } ); my ($first) = $te->tables; print Dumper (($first->rows)[0]); __DATA__ *insert your HTML here*

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2019-07-23 13:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If you were the first to set foot on the Moon, what would be your epigram?






    Results (27 votes). Check out past polls.

    Notices?