in reply to Pseudo-hash intrusion...
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.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;
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 |