Declare::Constraints::Simple::Library::Numerical - Numerical Constraints
# test for number-conformity my $looks_like_number = IsNumber; # only integers my $is_int = IsInt;
This library contains the constraints needed to validate numerical values.
True if the value is a number according to Scalar::Utils looks_like_number.
looks_like_number
True if the value is an integer.
Declare::Constraints::Simple, Declare::Constraints::Simple::Library
Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at>
<phaylon@dunkelheit.at>
This module is free software, you can redistribute it and/or modify it under the same terms as perl itself.
To install Declare::Constraints::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Declare::Constraints::Simple
CPAN shell
perl -MCPAN -e shell install Declare::Constraints::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.