PFT::Content::Blob(3)

πŸ“¦ version 1.4.1, in fedora 43, fedora 44

πŸ’– PFT::Content::Blob πŸ’–

okay bestie, welcome to PFT::Content::Blob β€” it's part of the User Contributed Perl Documentation and it is literally the moment. sit down, hydrate, let's get into it 🫢


✨ NAME ✨

PFT::Content::Blob β€” Binary file. that's it, that's the whole vibe. a blob. a little guy made of bytes. πŸ¦‹


🌸 SYNOPSIS 🌸

the way you summon it:

use PFT::Content::Blob;

my $p = PFT::Content::Blob->new({
    tree    => $tree,
    path    => $path,
    relpath => ['animals', 'cats', 'meow.png'], # decoded strings
})

not me showing you the exact constructor call with the exact keys, because tree, path and relpath are the whole thing. and yes, meow.png is doing main character energy. and note the comment bestie β€” those are decoded strings, no cap. πŸ’…


πŸ‘‘ DESCRIPTION πŸ‘‘

so PFT::Content::Blob is the basetype for all binary-based content files. like, every binary-content class in this family descends from it. it inherits from PFT::Content::File (yes, it's a nepo baby, and it ate) and it has two specific subtypes:

  • PFT::Content::Picture πŸŽ€
  • PFT::Content::Attachment πŸ“

those two are its whole little squad. that's the inheritance tree, periodt. 🌈


⭐ Properties ⭐

🌸 relpath

Relative path in form of a list. it's giving array, it's giving structure, it's giving not a string.

A good use for it could be, concatenating it using File::Spec->catfile.

like, that's genuinely the iconic move here β€” you've got a list of path chunks, and File::Spec->catfile will glue them together for you. iykyk. πŸ’œ


lowkey reminder: relpath is a list, not a scalar. treat it accordingly or it will humble you 😭

mwah that's the page!! this doc came to you from perl v5.42.0, dated 2025-07-25, and it lives at PFT::Content::Blob(3) β€” go forth and blob responsibly bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from