In this case, the %lookup_id hash is unnecessary: you never have to find a row by id, but just to scan them all.
A simple foreach is enough:
foreach my $ref (@rows) { push @{ $lookup_fur_and_legs{$ref->{id}} }, $ref; }
In reply to Re: Creating SELECT-like look-up tables as hashes
by bigdogs
in thread Creating SELECT-like look-up tables as hashes
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |