Skip Menu |
 

This queue is for tickets about the Lingua-PT-Abbrev CPAN distribution.

Report information
The Basics
Id: 87199
Status: resolved
Priority: 0/
Queue: Lingua-PT-Abbrev

People
Owner: ambs [...] cpan.org
Requestors: rurban [...] x-ray.at
Cc:
AdminCc:

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

Attachments


Subject: [PATCH] wrong return precedence
Download (untitled) / with headers
text/plain 131b
returns binds stronger than or, so the expression after or is ignored. See https://rt.perl.org/rt3/Public/Bug/Display.html?id=59802
Subject: Lingua-PT-Abbrev-0.08-returnor.patch
diff -bu Lingua-PT-Abbrev-0.08-cQhM2S/lib/Lingua/PT/Abbrev.pm~ Lingua-PT-Abbrev-0.08-cQhM2S/lib/Lingua/PT/Abbrev.pm --- Lingua-PT-Abbrev-0.08-cQhM2S/lib/Lingua/PT/Abbrev.pm~ 2012-08-22 02:13:21.000000000 -0600 +++ Lingua-PT-Abbrev-0.08-cQhM2S/lib/Lingua/PT/Abbrev.pm 2013-07-20 21:38:07.678704379 -0600 @@ -111,8 +111,8 @@ sub _exists { my $self = shift; my $word = shift; - return exists($self->{dic}{$word}) or - exists($self->{cdic}{$word}) or + return exists($self->{dic}{$word}) || + exists($self->{cdic}{$word}) || exists($self->{sdic}{$word}) }
Download (untitled) / with headers
text/plain 335b
On Tue Jul 23 13:14:28 2013, rurban@x-ray.at wrote: Show quoted text
> returns binds stronger than or, so the expression after or is ignored. > See https://rt.perl.org/rt3/Public/Bug/Display.html?id=59802
Fixed. Was asking if you were learning Portuguese, but just noticed you were just looking for returns with or's instead of ||'s Thank you Alberto


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.