in reply to store/retrieve data structure in MySQL
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.
In Section
Seekers of Perl Wisdom