This worked for me, i hope it models your prob:
use strict; use Data::Dumper; my $loh_ref = [ { blah => 'foo'}, { blah => 'bar'}, { blah => 'baz'}, ]; my @bar = sort{ $a->{blah} cmp $b->{blah} } @$loh_ref; print Dumper @bar;
I wonder why you are using hashes, especially if they have the same key . . . but as for pseudo-hashes, they are only effective if you use the fields module.



In reply to (jeffa) Re: Pseudo-hash intrusion... by jeffa
in thread Pseudo-hash intrusion... by dragonchild

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":