http://www.perlmonks.org?node_id=928894


in reply to Sorting on Nested Element

push @$sorted, $data->{Elements}{$_} for @pri;

Some people recommend using curly braces with dual sigils. I certainly do that with more complicated ones, but I feels it's simple enough when you say, "Take this scalar and access the array ( or hash ) it references".

As Occam said: Entia non sunt multiplicanda praeter necessitatem.