June 2002
Beginner
759 pages
80h 42m
English
parse_file
$p->parse_file(file)
Reads HTML into the parser object from the given
file, which can be a filename or an
open filehandle.
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.