Skip Menu |
 

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

Report information
The Basics
Id: 124994
Status: new
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

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



Subject: uniq() segfault
Download (untitled) / with headers
text/plain 499b
mst reports: $ perl -MList::Util\ 999 List::Util version 999 required--this is only version 1.5. BEGIN failed--compilation aborted. $ perl -MList::Util=uniq -E 'say sort uniq (1, 2, 5, 3, 1, 2, 7)' Segmentation fault Though as yet I'm unable to reproduce: leo@shy:~/src/perl/Scalar-List-Utils [git] $ perl -Mblib -MList::Util=uniq -E 'say sort uniq (1, 2, 5, 3, 1, 2, 7)' 7213521 Though I do notice the output seems unexpected. More investigation required... -- Paul Evans
Download (untitled) / with headers
text/plain 500b
On Mon Apr 02 13:27:41 2018, PEVANS wrote: Show quoted text
> Though I do notice the output seems unexpected. More investigation > required...
Ah. $ perl -Mblib -MList::Util=uniq -E 'say uniq (1, 2, 5, 3, 1, 2, 7)' 12537 $ perl -Mblib -MList::Util=uniq -E 'say sort {$a cmp $b} uniq (1, 2, 5, 3, 1, 2, 7)' 12357 I think the original syntax was requesting that uniq be used as the comparison sub, for sort(). I'm as yet unsure if I can recall how to hint the syntax to make it not do that. -- Paul Evans
Download (untitled) / with headers
text/plain 324b
On Mon Apr 02 13:30:38 2018, PEVANS wrote: Show quoted text
> I think the original syntax was requesting that uniq be used as the > comparison sub, for sort(). I'm as yet unsure if I can recall how to > hint the syntax to make it not do that.
$ perl -Mblib -MList::Util=uniq -E 'say sort +uniq (1, 2, 5, 3, 1, 2, 7)' 12357 -- Paul Evans


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.