Presumably the %uni_refs hash's values correspond to indices that should exist within @allrefs. So the values are sorted in ascending order forming a list of indices desired. Then they are used to take a slice of @allrefs, in that order.
Seems like a pretty useful way to grab the wanted elements in a desired order, allowing for duplicates and skips as needed.
Dave
In reply to Re: Code Interpretation
by davido
in thread Code Interpretation
by Perl_Ally
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |