Created
April 21, 2016 03:47
-
-
Save MadcapJake/4f54af99262831d8d7dbfa0078f694e3 to your computer and use it in GitHub Desktop.
High-Level HTML::MyHTML Interface RFC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use HTML::MyHTML | |
# basic init | |
my HTML::MyHTML $parser .= new; | |
# gather some html | |
my $website = qx{curl -s http://www.example.com}; | |
# parse html | |
$parser.parse($website); | |
# collect title tags | |
my @collection = $parser.tree.nodes:tag<title>; | |
say "Title: {@collection[0].Str}" | |
@collection.dispose; | |
$parser.dispose; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment