Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: parsing custom attributes in span/div tags

by daxim (Chaplain)
on Nov 04, 2013 at 09:10 UTC ( #1061109=note: print w/replies, xml ) Need Help??


in reply to parsing custom attributes in span/div tags

use Web::Query 'wq'; wq('<html><div cid="some data" url="some url">....</div>') ->find('*[cid]') ->text # '....'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061109]
help
Chatterbox?
[sierpinski]: thanks LanX that helps
[haukex]: the first index is always 0 - $#array gives you the last index in @array
[sierpinski]: gotcha, thanks
[LanX]: length = last index +1

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (16)
As of 2017-12-13 16:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?