Clownfish::Blob(3pm)

๐Ÿ“ฆ
version 0.8.0 ยท 3 versions
, in fedora 43, fedora 44

โœจ 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:

  • 0 if the Blobs are equal ๐ŸŸฐ
  • a negative number if self is less than other ๐Ÿ“‰
  • a positive number if self is greater than other ๐Ÿ“ˆ

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