Skip Menu |

This queue is for tickets about the DBI CPAN distribution.

Report information
The Basics
Id: 87029
Status: resolved
Priority: 0/
Queue: DBI

People
Owner: Nobody in particular
Requestors: rurban [...] x-ray.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.613_71
Fixed in: (no value)



Subject: Possible precedence issue with control flow operator at ./t/16destroy.t
With the patches in [perl #59802] applied the following construct is warned: < exit $self->FETCH('Active') || 0 unless $^O eq 'MSWin32'; Show quoted text
> exit ($self->FETCH('Active') || 0) unless $^O eq 'MSWin32';
t/zvxgp_15array.t ............... ok Possible precedence issue with control flow operator at ./t/16destroy.t line 81. t/zvxgp_16destroy.t ............. ok Please add the parens to improve the readability.
From: rurban [...] x-ray.at
exit is a unary operator. named unary operators have arithmetic precedence, i.e. tighter than || On Thu Jul 18 16:55:05 2013, rurban@x-ray.at wrote: Show quoted text
> With the patches in [perl #59802] applied the following construct is > warned: > > < exit $self->FETCH('Active') || 0 unless $^O eq 'MSWin32';
> > exit ($self->FETCH('Active') || 0) unless $^O eq 'MSWin32';
> > t/zvxgp_15array.t ............... ok > Possible precedence issue with control flow operator at > ./t/16destroy.t line 81. > t/zvxgp_16destroy.t ............. ok > > Please add the parens to improve the readability.
Subject: Re: [rt.cpan.org #87029] Possible precedence issue with control flow operator at ./t/16destroy.t
Date: Fri, 19 Jul 2013 13:33:23 +0200
To: bug-DBI [...] rt.cpan.org
From: "H.Merijn Brand" <h.m.brand [...] xs4all.nl>
On Thu, 18 Jul 2013 17:00:20 -0400, "Reini Urban via RT" <bug-DBI@rt.cpan.org> wrote: Show quoted text
> Queue: DBI > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=87029 > > > exit is a unary operator. > named unary operators have arithmetic precedence, i.e. tighter than ||
Thanks. Parens added as suggested. Closing ticket. -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.19 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/
Fixed in 1.631. Thanks!