Skip Menu |

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

Report information
The Basics
Id: 97726
Status: resolved
Estimated: 1 min
Worked: 1 min
Priority: 0/
Queue: Getopt-Auto

People
Owner: GLEACH [...] cpan.org
Requestors: fe [...] chez-geek.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.9.7
Fixed in: 2.0



Subject: precedence issue warning with perl 5.20.0 (patch)
Date: Sun, 03 Aug 2014 17:31:43 -0700
To: bug-Getopt-Auto [...] rt.cpan.org
From: Frossie <fe [...] chez-geek.net>
Patch below pacifies this warning (seen with perl 5.20.0): Possible precedence issue with control flow operator at /home/arcsoft/perl5/perlbrew/perls/perl-5.20.0/lib/site_perl/5.20.0/Getopt/Auto.pm line 564. --- Auto.pm.orig 2014-08-03 17:27:19.832943895 -0700 +++ Auto.pm 2014-08-03 17:17:01.201949216 -0700 @@ -560,8 +560,8 @@ sub _is_registered { my $arg = shift; - return ( exists $options{$arg} ) - and ( exists $options{$arg}{'registered'} ); + return (( exists $options{$arg} ) + and ( exists $options{$arg}{'registered'} )); } sub _notreg { -- Frossie fe@chez-geek.net