in reply to Creating a Moose object and serializing it
I usually use `Storable`, but it seems not to like coderefs.
I was doing some tests with Storable and coderefs a couple of weeks ago. The details are under the CODE REFERENCES section (not surprisingly :-) and begin "Since Storable version 2.05, ..." so you might want to check the version you're running.
My use statement looks like this:
use Storable qw{nstore retrieve}; { no warnings qw{once}; $Storable::Deparse = 1; $Storable::Eval = 1; }
I wasn't using Moose but I was storing blessed objects containing coderefs.
Anyway, if you do decide to take the Storable route, that may help.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating a Moose object and serializing it
by daverave (Scribe) on Oct 23, 2010 at 14:33 UTC | |
by kcott (Archbishop) on Oct 23, 2010 at 17:55 UTC | |
by daverave (Scribe) on Oct 23, 2010 at 18:07 UTC | |
by stvn (Monsignor) on Oct 24, 2010 at 23:38 UTC |