HTML::...teLinks(3pm)
π NAME π
HTML::Microformats::Format::VoteLinks β it's the VoteLinks microformat, bestie. That's the whole vibe. π³οΈβ¨
β¨ SYNOPSIS β¨
my @vlinks = HTML::Microformats::Format::VoteLinks->extract_all(
$doc->documentElement, $context);
foreach my $link (@vlinks)
{
printf("%s (%s)\n", $link->get_href, $link->get_vote;
}
okay yes the parentheses are a lil chaotic in that last line, that's literally what the page says, don't come for me π copy it verbatim and move on.
π¦ DESCRIPTION π¦
HTML::Microformats::Format::VoteLinks inherits from HTML::Microformats::Format_Rel. So likeβ¦ if you wanna know about the property getter/setter methods, the constructors, all of that, go read the base class definition. It's all there, I'm not repeating it, that's not the move. π
π Additional Methods π
$link->get_vote()β hands you back a string, and it's one of exactly three:'for','against', or'abstain'. That's it. That's the whole range of opinions available. π³οΈ$link->get_voter()β returns the hCard of whoever authored the VoteLinks link β if it can be figured out from context. And bestie, ngl, usually it can't. π It only really works if the page is also using hAtom, and only if the hAtom on the page has already been parsed. So like, context is everything and context is usually missing, iykyk.
π MICROFORMAT π
HTML::Microformats::Format::VoteLinks supports VoteLinks exactly as described over at <http://microformats.org/wiki/vote-links>. Go read the spec, it's iconic. π«Ά
β RDF OUTPUT β
The data comes back using Tom Morris' vote vocabulary β that's <http://rdf.opiumfield.com/vote/>. Slay. π₯
π BUGS π
Found a bug? Please report it to <http://rt.cpan.org/>. Be nice about it, they're doing their best. π₯Ί
π SEE ALSO π
HTML::Microformats::Format_RelHTML::MicroformatsHTML::Microformats::Format::hAtom
πΈ AUTHOR πΈ
Toby Inkster <tobyink@cpan.org>. π
π COPYRIGHT AND LICENCE π
Copyright 2008-2012 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. So like, same energy as Perl. Free. Open. Generous. We love to see it. π
π¨ DISCLAIMER OF WARRANTIES π¨
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
likeβ¦ no promises, bestie. none. zero. zip. it's giving "you're on your own" but in legalese. π
perl v5.32.1 Β· 2021-09-12 β and that's a wrap on HTML::...teLinks(3pm), mwah π β¨π¦ bye bestie, go vote on something π³οΈπ
π¦ where this page comes from
- debian bookworm: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libhtml-microformats-perl 0.105-6 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms