Skip Menu |

This queue is for tickets about the autobox-List-Util CPAN distribution.

Report information
The Basics
Id: 47243
Status: resolved
Worked: 15 min
Priority: 0/
Queue: autobox-List-Util

People
Owner: COWENS [...] cpan.org
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

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



Subject: shuffle() should return an array ref
shuffle() and any other List::Util function which returns a list should be made to return an array ref. This is what autobox::Core does. It allows chaining. say %hash->keys->shuffle->join("\n");
On Mon Jun 22 10:41:27 2009, MSCHWERN wrote: Show quoted text
> shuffle() and any other List::Util function which returns a list should > be made to return an array ref. This is what autobox::Core does. It > allows chaining. > > say %hash->keys->shuffle->join("\n");
Shuffle is the only function that returns more than one value. It now returns a list in list context and a an arrayref in other contexts. This allows chaining to work.