.perl serialization class and module