in reply to Code Interpretation
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Code Interpretation
by Perl_Ally (Novice) on Aug 22, 2014 at 16:26 UTC |