Getopt::Kingpin::Type::Num - command line option object
use Getopt::Kingpin; my $kingpin = Getopt::Kingpin->new; my $price = $kingpin->flag('price', 'set price')->num(); $kingpin->parse; printf "price : %.02f\n", $price;
Getopt::Kingpin::Type::Num is the type definition for Num within Getopt::Kingpin.
Set the value of $self->value. Allowed values are checked by looks_like_number from Scalar::Util.
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.