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