Term::CLI::Argument::Number::Float - class for floating point arguments in Term::CLI
version 0.04006
use Term::CLI::Argument::Number::Float; my $arg = Term::CLI::Argument::Number::Int->new( name => 'index', min => -1.0, max => +1.0, inclusive => 1 );
Class for floating point arguments in Term::CLI(3p). Extends Term::CLI::Argument::Number(3p).
Term::CLI::Argument::Number(3p).
None.
See Term::CLI::Argument::Number(3p).
Inherited from Term::CLI::Argument::Number(3p).
Additionally:
Overloaded to check for a valid numerical value (using Scalar::Util's looks_like_number).
Scalar::Util(3p), Term::CLI::Argument::Number::Int(3p), Term::CLI::Argument::Number(3p), Term::CLI::Argument(3p), Term::CLI(3p).
Steven Bakker <sbakker@cpan.org>, 2018.
Copyright (c) 2018 Steven Bakker
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See "perldoc perlartistic."
This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Term::CLI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Term::CLI
CPAN shell
perl -MCPAN -e shell install Term::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.