<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;">On May 1, 2009 04:30:51 pm Uri Guttman wrote:<br>
> AH> my @sortedpacked = sort { $a cmp $b} @packed;<br>
><br>
> no need for the explicit cmp op as string compare is the default for<br>
> sort. i think recent perls do optimize this away but it isn't needed<br>
> anyway.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I one of the issues from last night was that a numeric comparison was required (not a string one). That is "3" should precede "13".<br /><br>
Regards,<br>
Henry<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>-- <br /><br>
Henry Baragar<br>
Instantiated Software<br>
416-907-8454 x42</p></body></html>