From: Chris 'BinGOs' Williams Date: Tue, 1 Oct 2013 12:06:43 +0000 (+0100) Subject: Update Getopt-Long to CPAN version 2.42 X-Git-Tag: v5.19.5~106 X-Git-Url: https://perl5.git.perl.org/perl5.git/commitdiff_plain/7867c8228bb087815f7050b80053680ad9ccb2e6?ds=sidebyside Update Getopt-Long to CPAN version 2.42 [DELTA] Changes in version 2.42 ----------------------- * Fix bug https://rt.cpan.org/Ticket/Display.html?id=88707 --- diff --git a/Porting/Maintainers.pl b/Porting/Maintainers.pl index 9dc057f..f9c5d81 100755 --- a/Porting/Maintainers.pl +++ b/Porting/Maintainers.pl @@ -887,7 +887,7 @@ use File::Glob qw(:case); 'Getopt::Long' => { 'MAINTAINER' => 'jv', - 'DISTRIBUTION' => 'JV/Getopt-Long-2.41.tar.gz', + 'DISTRIBUTION' => 'JV/Getopt-Long-2.42.tar.gz', 'FILES' => q[cpan/Getopt-Long], 'EXCLUDED' => [ qr{^examples/}, diff --git a/cpan/Getopt-Long/CHANGES b/cpan/Getopt-Long/CHANGES index 0e8860b..0afd6ae 100644 --- a/cpan/Getopt-Long/CHANGES +++ b/cpan/Getopt-Long/CHANGES @@ -1,3 +1,8 @@ +Changes in version 2.42 +----------------------- + +* Fix bug https://rt.cpan.org/Ticket/Display.html?id=88707 + Changes in version 2.41 ----------------------- diff --git a/cpan/Getopt-Long/lib/Getopt/Long.pm b/cpan/Getopt-Long/lib/Getopt/Long.pm index 98c215d..3ef7d99 100644 --- a/cpan/Getopt-Long/lib/Getopt/Long.pm +++ b/cpan/Getopt-Long/lib/Getopt/Long.pm @@ -4,8 +4,8 @@ # Author : Johan Vromans # Created On : Tue Sep 11 15:00:12 1990 # Last Modified By: Johan Vromans -# Last Modified On: Mon Jul 8 08:22:51 2013 -# Update Count : 1644 +# Last Modified On: Tue Oct 1 08:25:52 2013 +# Update Count : 1651 # Status : Released ################ Module Preamble ################ @@ -17,10 +17,10 @@ use 5.004; use strict; use vars qw($VERSION); -$VERSION = 2.41; +$VERSION = 2.42; # For testing versions only. use vars qw($VERSION_STRING); -$VERSION_STRING = "2.41"; +$VERSION_STRING = "2.42"; use Exporter; use vars qw(@ISA @EXPORT @EXPORT_OK); @@ -251,7 +251,7 @@ use constant PAT_XINT => "|". "0[0-7_]*". ")"; -use constant PAT_FLOAT => "[-+]?[0-9._]+(\.[0-9_]+)?([eE][-+]?[0-9_]+)?"; +use constant PAT_FLOAT => "[-+]?[0-9_]+(\.[0-9_]+)?([eE][-+]?[0-9_]+)?"; sub GetOptions(@) { # Shift in default array. @@ -1200,7 +1200,6 @@ sub FindOption ($$$$$) { elsif ( $type eq 'f' ) { # real number, int is also ok # We require at least one digit before a point or 'e', # and at least one digit following the point and 'e'. - # [-]NN[.NN][eNN] my $o_valid = PAT_FLOAT; if ( $bundling && defined $rest && $rest =~ /^($key_valid)($o_valid)(.*)$/s ) {