HTML::Parser
This module implements the base class for the other
HTML modules. A parser object is created with the new
constructor:
$p = HTML::Parser->new( );
The constructor takes no arguments.
The parser object takes methods that read in HTML from a
string or a file. The string-reading method can take data in several
smaller chunks if the HTML is too big. Each chunk of HTML will be
appended to the object, and the eof
method indicates the end of the
document. These basic methods are described below.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.