The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Getopt::Kingpin::Type::Num - command line option object

SYNOPSIS

    use Getopt::Kingpin;
    my $kingpin = Getopt::Kingpin->new;
    my $price = $kingpin->flag('price', 'set price')->num();
    $kingpin->parse;

    printf "price : %.02f\n", $price;

DESCRIPTION

Getopt::Kingpin::Type::Num is the type definition for Num within Getopt::Kingpin.

METHOD

set_value($value)

Set the value of $self->value. Allowed values are checked by looks_like_number from Scalar::Util.

LICENSE

Copyright (C) sago35.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

sago35 <sago35@gmail.com>