YAML is Pure Perl, so you don't need any special permissions or tools to install it. But if you still want an alternative, I once wrote a simple but efficient serializer/deserializer. You'll need to add something to know when you've reached the end of the structure.
Comment on Re^3: Send/receive array through IO::Socket?