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


in reply to Storable Objects

My advice is, don't do it. Trying to serialize coderefs is just a bad idea that's likely to break at some point. I suggest you take a step back and think of a different approach that doesn't require this kind of magic.