in reply to Re: Is this a reasonable data structure?
in thread Is this a reasonable data structure?
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)
|
|---|