in reply to Recovering from a corrupt storable file

I don't think you can recover such a file with reasonable effort.

But since it's just a cache: delete it, then the application will re-generate it.

If this happens more often and turns out to be a problem for you, you need some transaction-safe system like a proper database.

Perl 6 - links to (nearly) everything that is Perl 6.