http://www.perlmonks.org?node_id=831832

chanakya has asked for the wisdom of the Perl Monks concerning the following question:

Dear All

I have a Perl script which creates/update persistence cache file on the disk using Storable.

Lately I have observed an issue. Basically one of the members
had killed the script in between and this has corrupted the persistence cache and I'm not able to recover from that point.

We store the counts of processed files as well as individual counts per each hour into the cache file. This is a hash ref that gets stored.
I'd like to know is there any fallback mechanism or any technique which can get the data from the corrupted cache file.

Thank you for your time.