Read Conway's Object Oriented Perl, for a million reasons, but specifically because it has a chapter showing how to achieve coarse and fine-grain persistance with all the serialization packages out there and with databases.
It should answer your questions a lot better than I could.