in reply to Hash to Scalar?
You can serailize any(*) datastructure using Storable (Standard). Have a look into the manpage.
*: any common structure