Skip Menu |
 

This queue is for tickets about the Scalar-List-Utils CPAN distribution.

Report information
The Basics
Id: 110278
Status: open
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: user42_kevin [...] yahoo.com.au
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Ymail-Osg: HlRVyEgVM1mIR7RBlB4fy1ckeaz1JAWW_3azbQKEsPfLehb cqx4_rQC_ku7OYnbcGVLDd4inEjthCC8Zd8haHZU29GcDopV0_rKuCqN0P0H _62e8pH_EeijRGk6TnEBcFZdZTM887hN8CDPB8mKR6ng.6.yqr8oU0PqAA9E nB3MGZD6oHOW5FHXQwxQ51AnUa7tWSd4mc81f18bJ6gxDxpG4SROBL_eptDK zJ4TdAxcR..vo71oDbz.sP4nHiNB5dPIkbrdMTTdZo65sVwQ9fkd7BYHwjpU tcvdFK.tfpUv9xjjhN40oSxlA3af5aaNZMrxICOCmaDmgt.TnRTKnl4IMA_C pRUhGHrPimB1DSV2ajDoTq8b4dlStJ1gFYeCPkqFJ4iC0sS6gJ9LkHNgNYo4 qLIpw0rIyM7.MQSKT.PKDZdF1.XAbAz38yHVyXYPAx6YOqa5WUVFp6YvR65w CbvpQoD6lWvJ3Uc1lAD_JoknolHwzvEIfv9LfZyx5lHvc1NMePW21RayeAti P82a1zlkOAvpoBMz04RSIO26khIVJxc3A2Q--
X-Spam-Status: No, score=-3.972 tagged_above=-99.9 required=10 tests=[AWL=-1.273, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Yahoo-Newman-ID: 150059.24456.bm [...] smtp111.mail.ne1.yahoo.com
X-Spam-Flag: NO
X-Yahoo-SMTP: U8NKAo6swBAxDIMUovTitGGHebxdYQBZ5A--
content-type: text/plain; charset="utf-8"
Message-ID: <87mvth7v32.fsf [...] blah.blah>
X-Yahoo-Newman-Property: ymail-3
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -3.972
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 571342402E5 for <cpan-bug+Scalar-List-Utils [...] hipster.bestpractical.com>; Thu, 10 Dec 2015 18:30:01 -0500 (EST)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LoFrx6niqYE2 for <cpan-bug+Scalar-List-Utils [...] hipster.bestpractical.com>; Thu, 10 Dec 2015 18:30:00 -0500 (EST)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 12C7F240003 for <bug-Scalar-List-Utils [...] rt.cpan.org>; Thu, 10 Dec 2015 18:29:59 -0500 (EST)
Received: (qmail 4184 invoked by alias); 10 Dec 2015 23:29:58 -0000
Received: from nm22-vm0.bullet.mail.ne1.yahoo.com (HELO nm22-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.60) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 10 Dec 2015 15:29:49 -0800
Received: from [98.138.100.115] by nm22.bullet.mail.ne1.yahoo.com with NNFMP; 10 Dec 2015 23:29:46 -0000
Received: from [98.138.84.43] by tm106.bullet.mail.ne1.yahoo.com with NNFMP; 10 Dec 2015 23:29:46 -0000
Received: from [127.0.0.1] by smtp111.mail.ne1.yahoo.com with NNFMP; 10 Dec 2015 23:29:46 -0000
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] yahoo.com.au
Delivered-To: cpan-bug+Scalar-List-Utils [...] hipster.bestpractical.com
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Subject: perl 5.23.5 simultaneous min,max wrong results
Return-Path: <user42_kevin [...] yahoo.com.au>
X-RT-Mail-Extension: scalar-list-utils
X-Original-To: cpan-bug+Scalar-List-Utils [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com.au; s=s2048; t=1449790186; bh=LWPKw0cE6JDTfBuQKdaqU6zp6pMuMv0gAmJpIBoiyb0=; h=From:To:Subject:Date:From:Subject; b=eptZRWVeGEYcgaHuUJ/FKRRzXUivrLJOCkWyqghGm1IuLtXRalBbRH/IbMO/I2jZIAxFA+gt1jrdp4ugGXTkUHGAqA+v4VWnP9AqMIqHcpI7NtXZObhWrBMCauzKk+Xz8v6YIHiJz+RcWKZbgrw2nV4LbPXMpZJI0HTRSOappA8ee+a2InKt1PPtvNT/JQ2HDghAvifqQjUcFB1MJ+jJTnR4VMJzR4BGKWaL4KUpOeeOk3Hpg587s66iMZMGQIKQU0YLzf8N6uFJlzU8ZBLBOg4YoGi/aLnYTRhlMILHdVlQJdRWPt9Qveko0AwTfamc+j33RsuO4xd5aHigBZvp4A==
Date: Fri, 11 Dec 2015 10:16:49 +1100
X-Spam-Level:
To: bug-Scalar-List-Utils [...] rt.cpan.org
From: Kevin Ryde <user42_kevin [...] yahoo.com.au>
X-RT-Original-Encoding: ascii
X-RT-Interface: Email
Content-Length: 638
Download (untitled) / with headers
text/plain 638b
In my build of perl 5.23.5 on recent debian i386 and its supplied List::Util 1.42_01, a program use strict; use List::Util 'min'; my $x = 7; my $y = 3; print "$x, $y\n"; ($x,$y) = (min($y), min($x)); print "$x, $y\n"; prints 7, 3 3, 3 where I expected it to be 7, 3 3, 7 which is what previous perl versions have given. I struck this digging around for https://rt.cpan.org/Ticket/Display.html?id=109700 I don't know if the fault lies in List::Util or in perl. Omitting the "min" so a plain swap ($x,$y) = ($y,$x) seems ok. Could something hairy happen on passing through min() ?
MIME-Version: 1.0
In-Reply-To: <87mvth7v32.fsf [...] blah.blah>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <87mvth7v32.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-24600-1449792102-91.110278-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 489
Download (untitled) / with headers
text/plain 489b
On 2015-12-10 15:30:02, user42_kevin@yahoo.com.au wrote: Show quoted text
> In my build of perl 5.23.5 on recent debian i386 and its supplied > List::Util 1.42_01, a program > > use strict; > use List::Util 'min'; > my $x = 7; > my $y = 3; > print "$x, $y\n"; > ($x,$y) = (min($y), min($x)); > print "$x, $y\n"; > > prints > > 7, 3 > 3, 3 > > where I expected it to be > > 7, 3 > 3, 7
I have the same (unexpected) results on 5.23.5 built for darwin-2level.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-24600-1449792102-91.110278-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <87mvth7v32.fsf [...] blah.blah> <rt-4.0.18-24600-1449792102-91.110278-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-9313-1449816813-542.110278-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
RT-Send-CC: ANDK [...] cpan.org
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 876
Download (untitled) / with headers
text/plain 876b
On 2015-12-10 19:01:42, ETHER wrote: Show quoted text
> On 2015-12-10 15:30:02, user42_kevin@yahoo.com.au wrote:
> > In my build of perl 5.23.5 on recent debian i386 and its supplied > > List::Util 1.42_01, a program > > > > use strict; > > use List::Util 'min'; > > my $x = 7; > > my $y = 3; > > print "$x, $y\n"; > > ($x,$y) = (min($y), min($x)); > > print "$x, $y\n"; > > > > prints > > > > 7, 3 > > 3, 3 > > > > where I expected it to be > > > > 7, 3 > > 3, 7
> > I have the same (unexpected) results on 5.23.5 built for darwin-2level.
I tried: - perl5.22.0 + Scalar-List-Utils from bleadperl (commit 869a96128d21fb7bfc6989e285158f95e53c8971) -> works as expected - perl5.23.5 + List::Util 1.42 from CPAN -> fails - perl5.23.2 -> fails - perl5.23.1 -> works So it looks like a perl problem (@ANDK: and it looks like a bisect candidate).
MIME-Version: 1.0
In-Reply-To: <87mvth7v32.fsf [...] blah.blah>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <87mvth7v32.fsf [...] blah.blah>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-4657-1449832157-670.110278-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 190
Download (untitled) / with headers
text/plain 190b
https://rt.perl.org/Public/Bug/Display.html?id=126633 is related. I just posted a cross reference over there but it has not yet arrived. Still unfixed in current blead v5.23.5-182-gfacc1dc.
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-4657-1449832157-670.110278-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <87mvth7v32.fsf [...] blah.blah> <rt-4.0.18-4657-1449832157-670.110278-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-28471-1452466140-592.110278-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 305
Download (untitled) / with headers
text/plain 305b
On Fri Dec 11 06:09:17 2015, ANDK wrote: Show quoted text
> https://rt.perl.org/Public/Bug/Display.html?id=126633 is related. I > just posted a cross reference over there but it has not yet arrived. > > Still unfixed in current blead v5.23.5-182-gfacc1dc.
This should be fixed in blead now at v5.23.6-93-gc7052e9. Tony


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.