HTML::...hEntry(3pm)

✨ HTML::Microformats::Format::hEntry β€” an hAtom entry ✨

okay bestie, so this page is from the User Contributed Perl Documentation collection, and it's literally about HTML::Microformats::Format::hEntry. Let's get into it πŸ’…


🌸 NAME 🌸

HTML::Microformats::Format::hEntry β€” it's an hAtom entry. that's the whole vibe. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

use Data::Dumper;
use HTML::Microformats::DocumentContext;
use HTML::Microformats::Format::hAtom;

my $context = HTML::Microformats::DocumentContext->new($dom, $uri);
my @feeds   = HTML::Microformats::Format::hAtom->extract_all(
                  $dom->documentElement, $context);
foreach my $feed (@feeds)
{
  foreach my $entry ($feed->get_entry)
  {
    print $entry->get_link . "\n";
  }
}

look at that. iconic. no notes. πŸ’–


πŸ‘‘ DESCRIPTION πŸ‘‘

HTML::Microformats::Format::hEntry is a helper module for HTML::Microformats::Format::hAtom, bestie. it's the class that represents entries within feeds. but fr fr, generally speaking? you want to use HTML::Microformats::Format::hAtom instead. this one's the sidekick, not the main character. πŸ™ˆ

HTML::Microformats::Format::hEntry inherits from HTML::Microformats::Format. and if you wanna know about property getter/setter methods, constructors, all that good stuff β€” go peek at the base class definition. it's all there. ✨


πŸŽ€ Additional Method πŸŽ€

  • to_atom β€” this method exports the data as an XML file containing an Atom <entry>. heads up though: it needs XML::Atom::FromOWL to work, and it will throw an error at run-time if that's not available. no cap. πŸ’€
  • to_icalendar β€” this method exports the data in iCalendar format (as a VJOURNAL). it requires RDF::iCalendar to work, and yep, it will throw an error at run-time if it's not available. same energy. 😭

πŸ› BUGS πŸ›

found a bug? please report it to <http://rt.cpan.org/>. do it for the culture. 🫢


🌈 SEE ALSO 🌈

HTML::Microformats::Format, HTML::Microformats, HTML::Microformats::Format::hAtom, HTML::Microformats::Format::hNews.

the whole friend group, honestly. πŸ’œ


⭐ AUTHOR ⭐

Toby Inkster <tobyink@cpan.org>. legend behaviour. πŸ‘‘


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. slay. πŸ’…


🚨 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, don't come for anyone if it breaks, bestie. it said what it said. 😭


and that's the whole page!! this one's running on perl v5.32.1, dated 2021-09-12 β€” so yeah, vintage but still cute. stay hydrated, go extract some microformats, mwah πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from