Data::...Counter(3pm)

πŸ’– NAME πŸ’–

ok so bestie, this is Data::Perl::Counter β€” it's a little wrapping class for a simple numeric counter πŸŽ€ (and yes it lives in the perl section 3pm of the manual, in case the header vibe check was needed).


✨ VERSION ✨

version 0.002011 β€” that's the one, no cap πŸ‘‘


🌸 SYNOPSIS 🌸

like, here's the whole vibe in one go:

use Data::Perl qw/counter/;

my $c = counter(4);

$c->inc;   # $c == 5

$c->reset; # $c == 0

ok so you make a counter starting at 4, you inc it and boom πŸ’₯ it's 5, then you reset and it's back to 0. iconic behavior honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

So the tea β˜•: this class is just a simple consumer of the Data::Perl::Role::Counter role β€” literally all the actual functionality lives over there. So if you want the real deets, you probably wanna go look at Data::Perl::Role::Counter instead. This one's just the wrapper doing its little main character entrance πŸ’…


🌈 AUTHOR 🌈

Matthew Phillips <mattp@cpan.org> β€” shoutout to the legend 🫢


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, that's the good license fr fr πŸ’œ


perl v5.36.0 Β· 2022-10-16

and that's the whole page bestie πŸŽ€ documented by the perl doc crew, dated 2022-10-16, running under perl v5.36.0 β€” go forth and count βœ¨πŸ’–

πŸ“¦ where this page comes from