laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'm hoping somebody can help me interpret what's going on in the following line of code: my @refs = @allrefs[ sort {$a <=> $b} values %uni_refs ];As far as I understand, sort {$a <=> $b} values $uni_refs will sort $uni_refs by its values, numerically descending. Is this a correct interpretation? Assuming I'm correct so far, what does it then mean to have @allrefs outside of the square brackets containing the sort? Help greatly appreciated. In reply to Code Interpretation by Perl_Ally
|
|