You may want to have a look at Re: Getting back $object from eval(Dumper($object)), which explains a couple of little configuration things you have to do if you are using Data::Dumper to serialize. eg, you have to turn on terse.
Comment on Re: store/retrieve data structure in MySQL