Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2014 13:33
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 anonymous/ef6890212e7b204cc030 to your computer and use it in GitHub Desktop.
Save anonymous/ef6890212e7b204cc030 to your computer and use it in GitHub Desktop.
$ perl -Mfeature=:all -Mojo -E 'say r g("mojolicio.us")->dom("*")->type->reduce(sub ($a, $b) { $a->{$b}++; $a }, {})'
The signatures feature is experimental at -e line 1.
{
"a" => 17,
"blockquote" => 1,
"body" => 1,
"div" => 7,
"form" => 1,
"h1" => 2,
"h2" => 4,
"head" => 1,
"html" => 1,
"img" => 5,
"input" => 3,
"li" => 7,
"link" => 3,
"p" => 9,
"pre" => 4,
"script" => 6,
"style" => 2,
"title" => 1,
"ul" => 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment