Skip Menu |

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

Report information
The Basics
Id: 18084
Status: resolved
Priority: 0/
Queue: Getopt-Declare

People
Owner: Nobody in particular
Requestors: torsten.seemann [...] infotech.monash.edu.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.11
Fixed in: (no value)



Subject: stdtype ':n' mis-parses exponential notation eg. "1e-20" => "1"
Hi Damian, RE: stdtype ':n' mis-parses exponential notation eg. "1e-20" => "1" # bug.pl use Getopt::Declare; my $args = Getopt::Declare->new(q{ -evalue <E:0+n> Maximum e-value <E> to consider }); print $args->{'-evalue'}, "\n"; sh$ ./bug.pl -evalue 1e-20 # prints "1" # should print "1e-20" The problem is a missing /[-+]?/ after the /[eE]/ I guess? ':n' => { pattern =>'(?:(?:%T[+-]?)(?:%D+(?:%T\.%D*)?(?:%T[eE]%D+)?' . '|%T\.%D+(?:%T[eE]%D+)?))' }, BTW, I had a chance to see Paul Fenwick speak in Perth recently, very impressive and entertaining. Reminded me of your old Monash lecturing days! It Getopt::Clade still on the back-burner? --Torsten Seemann
Thanks for reporting this bug, Torsten. It is fixed now.