However, you are doing too much work:
... # load address book entries my $sth = $dbh->prepare('SELECT * FROM addressbook'); $sth->execute(); my %data = map {$_->{last} => $_} @{$sth->fetchall_arrayref({})}; print Dumper \%data;
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to 2Re: Is this a reasonable data structure?
by jeffa
in thread Is this a reasonable data structure?
by Theo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |