in reply to Re: BerkeleyDB continue
in thread BerkeleyDB continue

Interrupted: I have to turn off my computer and it stops the code from running. What is the flush step? It is truncating the database whenever it is initialized with that tie command and writes to the hash. So maybe I need to put a flush statement into an END block?

Replies are listed 'Best First'.
Re^3: BerkeleyDB continue
by Anonymous Monk on Jul 15, 2011 at 12:43 UTC

    What is the flush step?

    Its calling the flush function

    It is truncating the database whenever it is initialized with that tie command and writes to the hash.

    No , berkeleydb won't do that -- if truncation is occurring, its a problem with the code you did not show

    So maybe I need to put a flush statement into an END block?

    Sure, if an END block will get executed after you interrupt it, put it there -- see Signals and END block