The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

String::Incremental::String

SYNOPSIS

    use String::Incremental::String;

    my $str = String::Incremental::String->new(
        format => '%04s',
        value  => sub { (localtime)[5] - 100 },
    );

    print "$str";  # -> '0014'

DESCRIPTION

String::Incremental::String is ...

CONSTRUCTORS

new( %args ) : String::Incremental::String

%args:

format : Str

value : CodeRef|Str

METHODS

as_string() : Str

returns "current" string.

following two variables are equivalent:

    my $a = $str->as_string();
    my $b = "$str";

LICENSE

Copyright (C) issm.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

issm <issmxx@gmail.com>