muratet has asked for the wisdom of the Perl Monks concerning the following question:

Is there a way to force a tied hash using MLDBM to write to disk? Does it do this already? I have an application saving results in a tied hash, and it seems as though it's not writing to disk as often as it has results. I'd like to be able to print the results as it runs. Thanks. Mike

Replies are listed 'Best First'.
Re: flushing mldbm buffers
by perrin (Chancellor) on Sep 24, 2002 at 23:41 UTC
    You need to untie it to flush changes to disk. If you're using this in a multi-process situation, consider using MLDBM::Sync, which handles it all for you.