Skip Menu |
 

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

Report information
The Basics
Id: 23863
Status: resolved
Priority: 0/
Queue: Scalar-List-Utils

People
Owner: Nobody in particular
Requestors: Limbic_Region_2000 [...] Yahoo.com
Cc:
AdminCc:

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



Subject: Bug (doc or implementation) with reduce() return values
Download (untitled) / with headers
text/plain 389b
The doc for reduce() says: Returns the result of the last call to BLOCK. It should either be explicitly documented to only return a single value or should be implemented to handle multiple return values my ($foo, $bar, $baz) = reduce {$hash{$arr[$a]} < $hash{$arr[$b]} ? ($a, $hash{$arr[$a]}, $arr[$a]) : ($b, $hash{$arr[$b]}, $arr[$b]) } grep defined($arr[$_]), 0 .. $#arr;
Download (untitled) / with headers
text/plain 123b
The documentation for the next release of List::Util have been changed to reflect that BLOCK is called in a scalar context


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.