In the current (0.06) version and with ReadMode(1) you need to use a "fresh" variable as the second argument of ->get, because, as a safety (the memory isn't owned by perl), the variable is marked read-only by LMDB_File.
So it can't be reused as-is in another ->get(...).
For the next version, now in testing, the internals was reimplemented to distinguish that kind of variables and allow its reuse by get, and under some constraints (Envs with MDB_WRITEMAP and Txn !MDB_RDONLY), allow them to be writen to.
El Mié Abr 30 06:27:24 2014, henri@asseily.com escribió:
Show quoted text> When setting ReadMode(1), a get($key, $value) always triggers the
> following error:
> Modification of a read-only value attempted at LMDB_File.pm line 335