Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Parsing HTML

by tobyink (Abbot)
on Jun 07, 2012 at 20:43 UTC ( #975039=note: print w/ replies, xml ) Need Help??


in reply to Re: Parsing HTML
in thread Parsing HTML

"<span>... </span> tags without attributes amount to no-ops."

Not in this case - the page in question is using them to add line breaks within paragraphs. Something along the lines of:

p.itinerari-info span { display: block }
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'


Comment on Re^2: Parsing HTML
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2015-07-28 03:03 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 (251 votes), past polls