HTML::...easure(3pm)

πŸ’– NAME πŸ’–

HTML::Microformats::Format::hMeasure β€” the hMeasure microformat, bestie. that's it, that's the whole vibe ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's literally how you use it:

use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::hMeasure;

my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @objects = HTML::Microformats::Format::hMeasure->extract_all(
                  $dom->documentElement, $context);
foreach my $m (@objects)
{
  printf("%s %s\n", $m->get_number, $m->get_unit);
}

look at that. extract_all hands you back a whole lil pile of objects and you just loop through them going "what's the number, what's the unit" πŸŽ€ iconic behaviour honestly


🌸 DESCRIPTION 🌸

so HTML::Microformats::Format::hMeasure inherits from HTML::Microformats::Format. that's its whole family tree fr fr πŸ’…

and if you wanna know about property getter/setter methods, constructors, all that good stuff? bestie, go read the base class definition. it's all documented there. i'm not gonna re-explain my parent's whole deal, that's giving plagiarism 😭


🌈 MICROFORMAT 🌈

HTML::Microformats::Format::hMeasure supports hMeasure, exactly as it's described over at <http://microformats.org/wiki/hmeasure> β€” go look, it's right there, no cap ✨


πŸ‘‘ RDF OUTPUT πŸ‘‘

this module outputs RDF, and it does it using the Extensible Measurement Ontology β€” that's <http://buzzword.org.uk/rdf/measure#>. yes the # is part of it, don't come for me 🫢


πŸ’€ BUGS πŸ’€

found a bug? please report it to <http://rt.cpan.org/>. do it. i'm begging πŸ™ˆ


πŸŽ€ SEE ALSO πŸŽ€

  • HTML::Microformats::Format
  • HTML::Microformats

the whole friend group, together at last πŸ’œ


⭐ AUTHOR ⭐

Toby Inkster <tobyink@cpan.org>. the main character who wrote this. we stan πŸ‘‘


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.

(yes that's the actual licence text, i'm not paraphrasing legal, that would be unhinged of me 🌸)


πŸ”₯ 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.

translation bestie: no promises, no guarantees, use at your own risk, it's giving "you're on your own and i love that for you" πŸ’€


and that's the whole page!! this was perl v5.32.1, dated 2021-09-12, from the User Contributed Perl Documentation files. slay, bye πŸ’–βœ¨

πŸ“¦ where this page comes from