Skip Menu |

This queue is for tickets about the Getopt-Long CPAN distribution.

Report information
The Basics
Id: 109035
Status: rejected
Priority: 0/
Queue: Getopt-Long

People
Owner: jv [...] cpan.org
Requestors: gdg [...] zplane.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 2.45
Fixed in: 2.47



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); ----------------------------------------------