Skip to content

Instantly share code, notes, and snippets.

@aereal
Created July 8, 2014 05:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aereal/7f9afd9673926f34136e to your computer and use it in GitHub Desktop.
Save aereal/7f9afd9673926f34136e to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Test::More;
use HTML::TreeBuilder::Select;
my $HTML = <<EOF;
<header id="header"></header>
EOF
my $tree = HTML::TreeBuilder::Select->new;
$tree->parse_content($HTML);
ok $tree->select('#header');
done_testing;
@aereal
Copy link
Author

aereal commented Jul 8, 2014

diag $HTML::TreeBuilder::Select::VERSION # 0.111

@aereal
Copy link
Author

aereal commented Jul 8, 2014

perl -v

This is perl 5, version 14, subversion 2 (v5.14.2) built for darwin-2level

Copyright 1987-2011, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment