Subject: | Specifier "f" rejects values with leading decimal point (V 2.45) |
Date: | Mon, 16 Nov 2015 12:51:54 -0700 |
To: | bug-Getopt-Long [...] rt.cpan.org |
From: | Glenn Golden <gdg [...] zplane.com> |
Version info: Getopt::Long 2.45, perl 5.22.0
The "f" type specifier does not seem to accept floating point values beginning
with a leading decimal point. For example
--foo=.123
is rejected, but
--foo=0.123
is accepted.
Minimal example:
----------------------------------------------
use warnings;
use strict;
use Getopt::Long;
my $opt_foo;
my $stat = GetOptions ("foo=f" => \$opt_foo);
----------------------------------------------