in reply to Never use Storable to save XS objects
Also be sure not to use Storable on closures. The lexical environment of the closure is not captured in the Storable object.
Functions are deparsed into approximately equivalent source code so beware that you get the same functional thing back.
In Section Meditations