Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Sorting an Array

by choroba (Chancellor)
on Jul 31, 2014 at 17:12 UTC ( #1095777=note: print w/replies, xml ) Need Help??

in reply to Sorting an Array

Note that creating an anonymous hash from lexical %entry is not needed. You can directly store a reference to it, as my will create a new one in the next iteration of the loop:
push @statements, \%entry;
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ