My script usually takes 1 minute to run, but with mldbm it takes anywhere from 15 minutes to 1 hour (seems quite long even if it is writing to disk). The script creates 3 db files which grow to about 800kb each.
This is my function to store the HOHs:
sub store{
my ($app,$staffno)=@_;
my $tmp=$appstaffwk{$app};
$tmp->{$staffno}=1;
$appstaffwk{$app}=$tmp;