in reply to sort index (head cold)

How about:
@sortindex=sort { $newa[$a] cmp $newa[$b] } (0..$#newa);

Replies are listed 'Best First'.
Re: Re: sort index (head cold)
by nop (Hermit) on Feb 02, 2001 at 21:20 UTC
    Many thanks! This solved a deep bug. Appreciate it.