logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Data::Perl::Counter - Wrapping class for a simple numeric counter.

Author

       Matthew Phillips <mattp@cpan.org>

Description

       This class is a simple consumer of the Data::Perl::Role::Counter role, which provides all functionality.
       You probably want to look there instead.

Name

       Data::Perl::Counter - Wrapping class for a simple numeric counter.

Synopsis

         use Data::Perl qw/counter/;

         my $c = counter(4);

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

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

Version

       version 0.002011

See Also