user890739
user890739

Reputation: 733

How to store an inner nested hash in perl

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);

Upvotes: 1

Views: 95

Answers (0)

Related Questions