http://qs1969.pair.com?node_id=168780


in reply to sorting and indicies

Your list is called "@list". This requires you to refer to its elements as $list[?] . This means that the sorting routine should be:

my @indicies = sort { $list[$a] <=> $list[$b] ) 0.. $#list;

If we read the line, it says:

Much greater detail is found in  man perlfunc and also on the sort documents on this site.

-- termix