Data::...Number(3pm)

πŸ’– Data::Perl::Number β€” the whole page, bestie πŸ’–

okay so this is Data::Perl::Number(3pm), a User Contributed Perl Documentation moment, and honestly? it's giving cute little wrapper energy. let's get into it 🌸


✨ NAME ✨

Data::Perl::Number β€” a wrapping class for Perl scalar numbers. yeah. that's the whole vibe. it wraps numbers. it's a wrapper. for numbers. πŸ’…


πŸŽ€ VERSION πŸŽ€

we're on version 0.002011, bestie. tiny number, big personality ✨


🌈 SYNOPSIS 🌈

here's how you actually use it, no cap:

use Data::Perl qw/number/;

my $num = number(123);

$num->add(5); # $num == 128

$num->div(2); # $num == 64

like?? look at that. you start at 123, you add(5) and now you're at 128, you div(2) and boom, 64. math but make it an object πŸ¦‹


πŸ’œ DESCRIPTION πŸ’œ

okay so real talk: this class is literally just a simple consumer of the Data::Perl::Role::Number role. that role does all the actual work β€” every bit of functionality lives there. so if you're looking for the real tea, you probably want to go look at Data::Perl::Role::Number instead. this page is basically the little sibling that points at the cool older sibling 😌

ngl if you came here hunting for the good stuff, the role is where the good stuff is. this class is just the vibe-forward front door πŸšͺ✨

πŸ‘‘ AUTHOR πŸ‘‘

Matthew Phillips <mattp@cpan.org> β€” king behavior, honestly 🫢


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

and the legal bit, because we respect the paperwork: this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt πŸ’…


and that's the whole page!! this was generated from perl v5.36.0, dated 2022-10-16, for Data::Perl::Number(3pm) β€” go forth and wrap your numbers responsibly, bestie πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from