PvP: Perl vs. Python
The problem: parsing an HTML file
The candidates: Python's built-in HTMLParser versus Perl's CPAN module HTML::TreeBuilder
The winner: Perl
Based on syntax alone, Perl's TreeBuilder module allows for a much more powerful tool for understanding and modifying HTML documents, and even though I trust that everything I can do with TreeBuilder can be done with HTMLParser, get this: the TreeBuilder page has actual documentation to show me how.
No comments:
Post a Comment