There's more than one way to do things | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Firstly, Data::Dumper doesn't give you persistence directly.
It is the storing and retrieval of data serialised by Data::Dumper that gives you persistence. How you loop through depends on whether you use coarse or fine grained persistence. Coarse grained will retrieve all the data at the start of the progrma and dump it all at the end. Has the advantage of simplicity, and the data can be manipulated using normal Perl during the program. Fine grained will store and retrieve each individual object each time it is accessed. Advantages are smaller memory footprint for data, and less likely to lose data if the program crashes. Needs more complicated mechanism for handling the storage. Suggested Refernces :
-- Brovnik In reply to Re: handling Perl Persistent Objects
by Brovnik
|
|