in reply to Using 'sort' to emulate SQL's 'select'...
my %HoH = ( 1 => { foo => 'bar', baz => 'bletch' }, 2 => { foo => 'bar2', baz => 'bletch2' }, ); my @fookeys = grep { $HoH{$_}{foo} eq 'bar2' } keys %HoH; # @fookeys is now 2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (ar0n) Re: Using 'sort' to emulate SQL's 'select'...
by deprecated (Priest) on Apr 22, 2001 at 19:51 UTC |