Name
eof
Synopsis
$p
->eof()
Description
Indicates the end of a document and flushes any buffered text. Returns the parser object.
When the parse
or parse_file
method is called, it parses the
incoming HTML with a few internal methods. In HTML::Parser, these methods
are defined, but empty. Additional HTML parsing classes (included in the
HTML modules or ones you write yourself) override these methods for their
own purposes. For example:
package HTML::MyParser;
require HTML::Parser;
@ISA=qw(HTML::MyParser);
sub start {
your subroutine defined here
}
The following list shows the internal methods contained in HTML::Parser:
Get Perl in a Nutshell 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.