in reply to How to convert Storable object back to a hash

You did get a reference (not a hash), but you did pass a reference (not a hash).

Anyway, you can use

use experimental qw( refaliasing declared_refs ); my \%foo = retrieve( ... );
instead of
my \%foo = retrieve( ... );

This gives you the returned hash itself, instead of copying the returned hash into a new hash. It's faster, and it maintains reference cycles.


Oops, I missed that someone had mentioned this.