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 πŸ’€


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