Bug?
Abigail
abigail at abigail.be
Mon Dec 9 11:36:04 GMT 2013
On Mon, Dec 09, 2013 at 10:23:28PM +1100, Kieren Diment wrote:
> In a short subroutine, this:
>
> use List::Util qw/shuffle/;
> my @list = @{$self->answer_list_orig_order};
> @list = shuffle @list if $self->random_order;
> return \@list;
>
> does what's expected. Returns the shuffled list.
>
> This:
>
> use List::Util qw/shuffle/;
> my @list = @{$self->answer_list_orig_order};
> @list = shuffle @list if $self->random_order;
> return \@list
>
> returns the list unshuffled.
>
> What's up with that?
You mean, the only difference is the lack of identation, and no
trailing semi-colon? Am I missing anything? Are we missing any
context?
Abigail
More information about the london.pm
mailing list