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

Re: $nextline not working

by McA (Priest)
on Mar 22, 2013 at 03:00 UTC ( #1024859=note: print w/replies, xml ) Need Help??


in reply to $nextline not working

Hi,

in your thread parsing html you got the totally correct advice to use well known and proved packages for HTML parsing. And now you're asking a question while being stuck with parsing HTML the hard and buggy way. IMHO follow the advice. Do it right (at least more right ;-)). Be sure the investment into investigating one of the packages will be worth probably not with this problem, but with the very next HTML parsing problem. (Assume the following: All people like what you've done and this process flow will be established and sometime someone is changing line breaks in your html and your script will break)

As stated in the other thread: Have a look at Mojo::DOM which has a very nice API and is simple to use.

Best regards
McA

If you still insist on solving your problem this way, give us a snippet of your html to see the structure.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1024859]
help
Chatterbox?
[Corion]: Nice to see that the kids have some understanding of important things that happen and the appropriate behaviour :)
[marto]: at times mine surprise me with this behavior :)
[Corion]: I mean, in a way it would be nicer+easier if they always where that obedient, but it's comforting to see that they are when it matters, at least for now ;)

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2016-12-08 09:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (138 votes). Check out past polls.