in reply to Storing complex data structures using Storable

The error says precisely why you cannot store the data structure - it contains a code reference (perlref). The Storable documentation explains how to store coderefs, but with the caveat that this has significant possible security implications.
  • Comment on Re: Storing complex data structures using Storable