|
|
| Just another Perl shrine | |
| PerlMonks |
Re: HTML Parser suggestionsby tobyink (Prior) |
| on Jan 11, 2013 at 21:27 UTC ( #1012982=note: print w/ replies, xml ) | Need Help?? |
|
I'm biased, but I'll suggest HTML::HTML5::Parser. It uses the HTML5 parsing algorithm, so if faced with messy tag soup HTML, should very closely match how most desktop browsers parse HTML. Quick example:
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||