So how do we do serialization in Perl ? Most object sharing methods provide their own means of serialization. For Object persistence people commonly use: Data::Dumper Data::DumpXML Storable MLDBM Example here will use Data::DumpXML ( and Data::DumpXML::Parser ).