Help for this page

Select Code to Download


  1. or download this
    my $p = HTML::Parser->new( api_version => 3,
                             start_h => [\&start, "tagname, attr"],
    ...
    
    # Parse directly from file
    $p->parse_file($inputFile);
    
  2. or download this
    sub text {
            my($origtext, $is_cdata) = @_;
    ...
            $origtext =~ s/½/\½/g;
            print $origtext;
    }