in reply to Re: altering value in tied hash
in thread altering value in tied hash

The documentation of BerkeleyDB doesn't mention anything, so if you really want to know, you should study the source, probably these six thousand lines of XS.

:) thats funny choroba but no

First thing to try is to clean up the code so each tie/untie is in its own scope, and try that

Replies are listed 'Best First'.
Re^3: altering value in tied hash
by rlmoe (Initiate) on Jun 26, 2016 at 15:23 UTC
    perl 5.10.0 $BerkeleyDB::db_version 4.6

    When I put the four operations (load tied hash, assess hash, modify hash, reassess hash) in separate files and run them sequentially, I get the same results.

      :D You're missing a version number

      Anyway, its a bug, report it to the author, pmqs@cpan.org

      It may be a bug in "db" itself resolved in a new version

      It may be expected behaviour (unlikely) which ought to be documented

      The author/developer/maintainer ought to have an idea

        I heard from maintainer Marquess.

        http://docs.oracle.com/cd/E17076_02/html/programmer_reference/am_misc_ +stability.html
        explains that modifying a value in an each iteration on a tied hash is not allowed unless transactions are used.