Data::Taxi is a Taint-aware, XML-ish data serialization.
use Data::Taxi ':all';
my ($ob, $str);
$ob = MyClass->new();
$str = freeze($ob);
$ob = thaw($str);
Data::Taxi can be installed with the usual routine:
You can also just copy Taxi.pm into the Data/ directory of one of your library trees.
Taxi (Taint-Aware XML-Ish) is a data serializer with several handy features:
Taxi does not force you to trust the data you are serializing. None of the input data is executed.
Taxi produces a human-readable string that simplifies checking the output of your objects.
While I don't (currently) promise full XML compliance, Taxi produces a block of XML-ish data that could probably be read in by other XML parsers.