Catman...x::code(3pm)

πŸ“¦
version 1.2025 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– Catman...x::code(3pm) πŸ’–

okay bestie, quick vibe check before we dive in: this page lives in the User Contributed Perl Documentation manual, and its title card reads Catman...x::code(3pm). that's the whole header, no cap. now let's get into it πŸ¦‹


✨ NAME ✨

Catmandu::Fix::code β€” run arbitrary code as a fix πŸ’…

like... it's giving "you bring the code, it runs the code." iconic behavior, honestly.


✨ SYNOPSIS ✨

my $fix = Catmandu::Fix::code->new( sub {
    my ($data) = @_;
    # ...do something
    return $data;
});

that's the whole flex 🫢 you hand it a sub, the sub gets your $data, you do whatever the moment calls for, and you return $data like the main character you are. periodt. πŸ‘‘


✨ SEE ALSO ✨

  • Catmandu::Fix::perlcode 🌸
  • Catmandu::Fix::cmd 🌈

go read those too, bestie, they're the rest of the friend group πŸ’œ


ngl, the whole description here is basically "run arbitrary code as fix" β€” that's it, that's the tea. short king of a manpage, fr fr. πŸ’€

and that's a wrap, angel! πŸŽ€ this little love letter comes to you from perl v5.40.1, dated 2026-01-24. go run some code, slay, and hydrate πŸ’–βœ¨

πŸ“¦ where this page comes from