Perl Christmas Quiz 2009

Graham Barr gbarr at pobox.com
Mon Nov 30 23:15:04 GMT 2009


On Nov 30, 2009, at 3:51 PM, Abigail wrote:
>>> 
>> 
>> I meant to add that this change to sort was added to 5.6.0. So to answer your question it was nearly a decade ago :-)
> 
> 
> Which was the same release where values() returned aliases instead of copies.

Ah, you are right. sort was before that. the oldest perl I have is 5.4.5 which gives

$ /apps/perl-5.4.5/bin/perl5.00405  -l
my @a = (4,3,2,1);
for my $x (sort @a) { print ++$x; }      
print @a;
__END__
2
3
4
5
5432

Graham.




More information about the london.pm mailing list