Skip Menu |
 

This queue is for tickets about the List-MoreUtils-XS CPAN distribution.

Report information
The Basics
Id: 123870
Status: resolved
Priority: 0/
Queue: List-MoreUtils-XS

People
Owner: Nobody in particular
Requestors: PETDANCE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.427_002
Fixed in: 0.428



Subject: one() returns true if passed an open list.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-8195-1513115692-1944.0-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 371
Download (untitled) / with headers
text/plain 371b
The docs state: For an empty LIST, "one" returns false However: $ perl -MList::MoreUtils -E'say List::MoreUtils::one { 0 } ()' 1 It doesn't fail with the ::PP version. $ perl -MList::MoreUtils -E'say List::MoreUtils::PP::one { 0 } ()' 0 (This was initially reported at https://github.com/perl5-utils/List-MoreUtils/issues/31. Sorry about that.)


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.