Clownfish::Blob(3pm)
โจ Clownfish::Blob โจ
okay so bestie, welcome to Clownfish::Blob โ a page from the User Contributed Perl Documentation collection, and honestly? it's giving "immutable buffer holding arbitrary bytes" and nothing less. it's short, it's sweet, it's iconic. let's go ๐
NAME
Clownfish::Blob โ Immutable buffer holding arbitrary bytes. ๐ซถ
like, you hand it bytes, it holds them, it will never change its mind. no cap.
SYNOPSIS
my $blob = Clownfish::Blob->new($byte_string);
my $byte_string = $blob->to_perl;
see how clean that is?? make a Blob, get your bytes back. the whole vibe in two lines fr fr ๐ธ
DESCRIPTION
ngl the original page just... does not write any prose here ๐ it goes straight into the good stuff. no filler, all substance, main character energy. keep scrolling, bestie ๐
CONSTRUCTORS
new
my $blob = Clownfish::Blob->new($byte_string);
Create a Blob containing the passed-in bytes. that's it, that's the whole job. you give it $byte_string, it wraps it up like a little gift ๐โจ
METHODS
get_size
my $int = $blob->get_size();
Return the number of bytes held by the Blob. literally just a headcount of your bytes ๐งฎ๐
compare_to
my $int = $blob->compare_to($other);
Indicate whether one Blob is less than, equal to, or greater than another. The byte contents of the Blobs are compared lexicographically. Throws an exception if other is not a Blob. ๐จ
bestie, if you pass something that is not a Blob, it will throw. don't do that. ๐ซ
Returns:
0if the Blobs are equal ๐ฐ- a negative number if
selfis less thanother๐ - a positive number if
selfis greater thanother๐
clone
my $result = $blob->clone();
Return a clone of the object. a whole twin, no drama, no shared trauma ๐
INHERITANCE
Clownfish::Blob isa Clownfish::Obj. so it's got the family tree going on, iykyk ๐
and that's the whole page, bestie!! slay ๐ โจ
this cutie came out of perl v5.42.3, dated 2026-09-02, and it's page Clownfish::Blob(3pm) from the User Contributed Perl Documentation set. mwah, bye ๐ฆ๐
๐ฆ where this page comes from
- fedora 43: perl-Clownfish 0.8.0-1.fc43 ยท Apache-2.0
- fedora 44: perl-Clownfish 0.8.0-1.fc44 ยท Apache-2.0
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms