String::Incremental::String
use String::Incremental::String; my $str = String::Incremental::String->new( format => '%04s', value => sub { (localtime)[5] - 100 }, ); print "$str"; # -> '0014'
String::Incremental::String is ...
%args:
format : Str
value : CodeRef|Str
returns "current" string.
following two variables are equivalent:
my $a = $str->as_string(); my $b = "$str";
Copyright (C) issm.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
issm <issmxx@gmail.com>
To install String::Incremental, copy and paste the appropriate command in to your terminal.
cpanm
cpanm String::Incremental
CPAN shell
perl -MCPAN -e shell install String::Incremental
For more information on module installation, please visit the detailed CPAN module installation guide.