Try:
so long as you don't have more than 26 numbers. - tyemy @data= ( 5, 100, 2, 8, 40 ); my @indices= sort { $data[$a] <=> $data[$b] } 0..$#data; my @letters; @letters[@indices]= ('A'..'Z'); print "@letters\n";
In reply to Re: Render numeric sequence as array of letters (index sort + slice)
by tye
in thread Render numeric sequence as array of letters
by gryphon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |