P is for Practical | |
PerlMonks |
Re^6: Perl Get issueby petdance (Parson) |
on Nov 14, 2012 at 17:26 UTC ( [id://1003865]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|