Data::Perl::Code(3pm)

πŸ’– Data::Perl::Code πŸ’–

okay bestie, so you know how there's a manual page called Data::Perl::Code(3pm) but like,,, nobody told you what it is? that's literally what i'm here for. it's the wrapping class for Perl coderefs, and it's lowkey adorable. periodt.


✨ VERSION ✨

this one's rockin' version 0.002011 πŸ’…


🌸 SYNOPSIS 🌸

the way that this is all you need, fr fr:

use Data::Perl qw/code/;

my $code = code(sub { 'Foo'} );

$code->execute(); # returns 'Foo';

like. look at that. $code->execute() hands you back 'Foo'. iconic behavior honestly 😭✨


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea πŸ“: this class is just a simple consumer of the Data::Perl::Role::Code role, and that role is the one doing literally ALL the heavy lifting β€” it provides all functionality. so if you actually want the goods, you probably wanna go peek over there instead. no cap. this page is basically the cute little storefront, the role is the whole entire mall 🫢


πŸ‘‘ AUTHOR πŸ‘‘

Matthew Phillips <mattp@cpan.org> β€” we stan πŸ’œ


This software is copyright (c) 2020 by Matthew Phillips <mattp@cpan.org>. ✨

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay, open source rights πŸ’…πŸŒˆ


and that's the whole vibe, bestie!! this was Data::Perl::Code(3pm), delivered to you by perl v5.36.0 on 2022-10-16 β€” go forth and execute your coderefs responsibly, love u, bye πŸ’–πŸ§šβ­

πŸ“¦ where this page comes from