in reply to Pseudo-hash intrusion...

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.

Jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--

Replies are listed 'Best First'.
Re: (jeffa) Re: Pseudo-hash intrusion...
by dragonchild (Archbishop) on Jun 21, 2001 at 19:09 UTC
    That's just the thing. I'm not using fields.pm. This code worked until I moved the function that does this sort from the main script to a module using Exporter. At that point, I started getting the pseudo-hash error. I'm not even using inheritance at all (except for inheriting from Exporter, but that shouldn't affect anything ... right?)