Help for this page

Select Code to Download


  1. or download this
     
    use warnings;
    use strict;
    ...
     my $content=HTML::FormatText->format_file($input, leftmargin => 0, ri
    +ghtmargin => 50);
     # followed by some regular expressions, the results of which are save
    +d in a new file - all of this is commented out at the moment
    }
    
  2. or download this
     
    use HTML::TreeBuilder 5 - weak;
    
  3. or download this
     
    use warnings;
    use strict;
    ...
     my $sentry = Object::Destroyer->new($content, 'delete' );
     # followed by some regular expressions, the results of which are save
    +d in a new file - all of this is commented out at the moment
    }
    
  4. or download this
    use warnings;
    use strict;
    ...
     my $formatter = HTML::FormatText->new();
     my $content=$formatter->format(Object::Destroyer->new(HTML::TreeBuild
    +er->new_from_file($inputfile), 'delete'));
    }
    
  5. or download this
    use strict;
    use HTML::TreeBuilder;
    ...
            my $sentry = Object::Destroyer->new($tree, 'delete');
            $tree->parse_file($filename);
        }