@hash{@list} is the list of hash values corresponding to the keys in @list.
And, yes, it does break if @list contains duplicates.
--
"Perl makes the fun jobs fun
and the boring jobs bearable" - me
In reply to Re: Re: Re: sorting based on a list
by davorg
in thread sorting based on a list
by mbond
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |