note
termix
<P>Your list is called "@list". This requires you to refer to its elements as <code>$list[?]</code> . This means that the sorting routine should be:
<P><code>
my @indicies = sort { $list[$a] <=> $list[$b] ) 0.. $#list;
</code>
<P>If we read the line, it says:
<ul><li>@indicies is the new array
<li>The sort is going to sort numbers from 0 to the highest index in "@list"
<li>But the sorting comparision (the stuff in the curlies) is going to compare the values inside @list rather than the indicies themselves. However, it will reoder the indicies to create your new array.
</ul>
<p>Much greater detail is found in <code> man perlfunc</code> and also on the sort documents on this site.
<P><font size=-1>--
termix</font>
168776
168776