I want to use in Berkeley DB the following Perl logic (for many millions records):
$hash{key1}{key2}{key3}{count1}++;
$hash{key1}{key2}{key3}{count2}++;
...
for (key1) {
for (key2) {
for (key3) {
print $hash{key1}{key2}{key3}{count1}."\t".$hash{key1}{key2}{key2}{count2};
}
}
}
Any example from multiple keys? I may of couse use "pseudo-multiple" key ( key1_key2_key3 ); but is there any other way?