How to store an inner nested hash in perl

98 views Asked by At

I have a perl nested hash. When I try to store using Storable module, the inner hash, I'm getting the error "not a reference". Example:

store($outer_hash->{$id}, $filename);

And how should I retrieve it back? Is the next line is the right way?

$outer_hash->{$id} = retrieve($filename);
0

There are 0 answers