in reply to Can I serialize an object and have it remember it's type?
If you want to serialize in a human readable form, try YAML. Serialization of objects, be it with storable, Data::Dumper or YAML, will preserve the blessing, hence blessed objects are returned when you load them back.
Bear it in mind that loading an object twice will produce two different objects but with the same contents.
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Can I serialize an object and have it remember it's type?
by Anonymous Monk on Jul 21, 2005 at 14:48 UTC | |
by halley (Prior) on Jul 21, 2005 at 18:38 UTC | |
by Anonymous Monk on Jul 22, 2005 at 12:43 UTC |
In Section
Seekers of Perl Wisdom