2009/3/24 marcos rebelo <span dir="ltr"><<a href="mailto:oleber@gmail.com">oleber@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">On Tue, Mar 24, 2009 at 5:54 PM, Michele Beltrame <<a href="mailto:mb@cattlegrid.info">mb@cattlegrid.info</a>> wrote:<br>
> I would say number 14 could be changed a bit, as keys() might return<br>
> keys in any order, so arrays shown as options could not be correct as<br>
> far as ordering is concerned.<br>
<br>
</div></div>before there was a sort in there. You don't imagine the casino in the<br>
Lisbon PM, the alphabetic order, ...<br>
<br>
So at the end, this is the only possible answer.</blockquote><div><br>Except that without the sort the answer is wrong, and with the sort the answer is right ;-)<br><br>DB<6> @a{1,2,19,6,2,6}=(1..6); print Dumper([ sort keys %a ]); <br>
$VAR1 = ['1','19','2','6'];<br><br>You could try sort { $a <=> $b } keys %a to be clearer?<br>osf'</div></div>