XML::F...losure(3pm)
π XML::Feed::Enclosure β the manual, but make it cute π
okay bestie, so this is the XML::Feed::Enclosure page from your friendly neighborhood User Contributed Perl Documentation section (manual page 3pm, for the record π). It's a lil' wrapper class and honestly? She's simple, she's iconic, she does one job and she does it well. Let's get into it β¨
πΈ NAME πΈ
XML::Feed::Enclosure β a Wrapper for enclosure objects π
β¨ SYNOPSIS β¨
okay so here's the whole vibe in two lines, no cap:
my ($enclosure) = $entry->enclosure;
print $enclosure->type;
like. that's it. grab the enclosure off the entry, print its type. slay π
π¦ DESCRIPTION π¦
So XML::Feed::Enclosure represents a content object inside an XML::Feed::Entry entry, inside a syndication feed. That's the whole concept β an enclosure hanging out inside an entry, and this class is the wrapper that holds it π
π USAGE π
π«Ά wrap
Take params and turn them into a XML::Feed::Enclosure object. That's literally her whole thing β params go in, a shiny enclosure object comes out β¨
π«Ά new
A synonym for wrap. Same energy, different name. Pick whichever one makes your heart happy π
π«Ά $enclosure->url
The url of the object. Where it lives, bestie π
π«Ά $enclosure->type
The MIME type of the item referred to in url. So like, what kind of thing is waiting for you at that url π
π«Ά $enclosure->length
The length of object referred to in url. Yeah, she'll tell you how big it is π
π AUTHOR & COPYRIGHT π
Please see the XML::Feed manpage for author, copyright, and license information. All the paperwork lives over there, iykyk π
ngl this one was short and sweet and I respect it so much for that π§
and that's the whole page!! this was perl v5.40.1, dated 2026-02-21, and it came to you straight from the XML::F...losure(3pm) manual π
mwah, go read your feeds, bestie ππΈ
π¦ where this page comes from
- ubuntu stonking: libxml-feed-perl 1.0.0+dfsg-1 Β· 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