Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Code Interpretationby davido (Cardinal) |
on Jul 28, 2014 at 16:33 UTC ( [id://1095387]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|