PFT::Content::Blob(3)
π 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
- fedora 43: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- fedora 44: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms