Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: HTML::TreeBuilder::XPath returns things I don't need?

by Anonymous Monk
on Oct 06, 2014 at 23:20 UTC ( [id://1103035]=note: print w/replies, xml ) Need Help??


in reply to HTML::TreeBuilder::XPath returns things I don't need?

Am I misunderstand what XPath is supposed to do?

Trees are trees :)

htmltreexpather.pl

$ perl htmltreexpather.pl junktitle.html _tag title HTML::Element=HASH(0xcded54) 0.0.0 four /html/head/title /html/head/title /html/head/title ------------------------------------------------------------------ HTML::Element=HASH(0xcdea04) 0.0.1 one /html/head/title[2] /html/head/title[2] /html/head/title[2] ------------------------------------------------------------------ HTML::Element=HASH(0xcde954) 0.0.2 two /html/head/title[3] /html/head/title[3] /html/head/title[3] ------------------------------------------------------------------ HTML::Element=HASH(0xcde8e4) 0.0.3 three /html/head/title[4] /html/head/title[4] /html/head/title[4] ------------------------------------------------------------------ ##################################################################

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-25 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found