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


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)