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
In reply to Re: sorting and indicies
by termix
in thread sorting and indicies
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |