in reply to Sending an array through a socket!

Take a look at the Storable module

It will allow you to serialize any data structure and de-serialize it at the other end.

You can download the module here