Help for this page

Select Code to Download


  1. or download this
    # Strict
    use strict;
    ...
    } else {
         print "Unable to find tag '$tag'\n";
    }
    
  2. or download this
    print "TFD> content $content\n";
    
  3. or download this
    my $tree = HTML::TreeBuilder->new_from_content($content);
    
  4. or download this
    my $tag = 'a';
    my $match = $tree->find($tag);
    
  5. or download this
        print "   As text:  ", $match->as_text, "\n";
        print "   As text:  ", $match->as_HTML, "\n"