Under 5.005 this worked. I solved a "Can't use subscript on hash deref" error by changing your sort function (added the percent symbols).
#!/usr/bin/perl use strict; my %R = ( 'blah' => 5 ); my %S = ( 'blah' => 2 ); my %T = ( 'blah' => 3 ); my @barary = qw(); my @fooary = (\%R, \%S, \%T); sub sortfunc { %$a->{'blah'} cmp %$b->{'blah'}; } @barary = sort sortfunc @fooary; print "$_->{blah} " foreach @barary; print "\n";

In reply to Re: Pseudo-hash intrusion... by mattr
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":