From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

Mo::utils::Number::Utils - Utilities for Mo::utils::Number.

SYNOPSIS

use Mo::utils::Number::Utils qw(sub_check_percent);
sub_check_percent($value, $key, $func, $error_value);

SUBROUTINES

sub_check_percent

sub_check_percent($value, $key, $func, $error_value);

Common subroutine for check percents. It is exportable.

Returns undef.

ERRORS

sub_check_percent():

EXAMPLE

use strict;
use Mo::utils::Number::Utils qw(sub_check_percent);
my $ret = sub_check_percent('20%', 'key', 'percent value', 'user value');
if (! defined $ret) {
print "Returns undef.\n";
}
# Output:
# Returns undef.

DEPENDENCIES

Error::Pure, Exporter, Readonly.

SEE ALSO

Mo::utils::Number

Mo number utilities.

REPOSITORY

https://github.com/michal-josef-spacek/Mo-utils-Number

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2024-2025 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.01