in reply to perl Data::Dumper'ed to C++

If you're just trying to exchange data between Perl and C++, use the marshalling code from SOAP or XML-RPC. It's already implemented in Perl and C++ and it uses XML for the interchange format.