HTML-TagReader - Perl extension module for reading html/sgml/xml files
The module implements a fast and small object oriented way of processing any kind of html/sgml/xml files by tag. The getbytoken(0) is similar to while(<>) but instead of reading lines it reads tags or tags and text. HTML::TagReader makes it easy to keep track of the line number in a file even though you are not reading the file by line. This important if you want to implement error messages about html errors in your code.