in reply to Storable: freeze/unfreeze
Regarding the use of storable, my understanding is the module works on references to a data structure. You may want to check out some examples in the Perl Cookbook (pages 388 onwards. Now I have not used the "freeze / thaw" functions, but basically the process works like this:
As I said, I dont know about nfreeze / thaw, but it may also require you pass a reference to the data structure, and thaw may return a reference.my %complex_hash = (); # now stick stuff in the hash store (\%complex_hash, '/some/file/name'); # notice the use of the backslash, meaning you pass a reference # later on . . . $complex_hash_ref = retrieve('/some/file/name'); # or even %complex_hash = %( retrieve('/some/file/name');
|
|---|