Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^6: Perl Get issue

by petdance (Parson)
on Nov 14, 2012 at 17:26 UTC ( #1003865=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Perl Get issue
in thread Perl Get issue

The problem is that regexes are not a robust way to parse HTML. You may be parsing a given page correctly, but if that page ever changes, your regexes will break.

See http://htmlparsing.com/perl.html for some examples of how to do it right, and http://htmlparsing.com/regexes.html gives more details about why regexes are a bad idea.

xoxo,
Andy


Comment on Re^6: Perl Get issue

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (16)
As of 2015-07-02 13:49 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 (40 votes), past polls