Getopt::Kingpin::Type::Int - command line option object
use Getopt::Kingpin; my $kingpin = Getopt::Kingpin->new; my $age = $kingpin->flag('age', 'set age')->int(); $kingpin->parse; printf "age : %s\n", $age;
Getopt::Kingpin::Type::Int is the type definition for Int within Getopt::Kingpin.
Set the value of $self->value. Tests it against the regular expression /^-?[0-9]+$/.
/^-?[0-9]+$/
Copyright (C) sago35.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
sago35 <sago35@gmail.com>
To install Getopt::Kingpin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Getopt::Kingpin
CPAN shell
perl -MCPAN -e shell install Getopt::Kingpin
For more information on module installation, please visit the detailed CPAN module installation guide.