nop has asked for the wisdom of the Perl Monks concerning the following question:
sub dumpsave { my ($fname, $ref)= @_; print "saving structure to $fname...\n"; store $ref, $fname; } sub dumpsave2 { my ($fname, $ref)= @_; print "saving structure to $fname...\n"; local $Data::Dumper::Indent = 0; local $Data::Dumper::Purity = 1; local $Data::Dumper::Terse = 1; local $Data::Dumper::Deepcopy = 1; open (F, ">$fname") or die "cant write open $fname"; print F Dumper($ref); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Big objects: Dumper vs. Storable
by tye (Sage) on Oct 16, 2000 at 22:19 UTC | |
by isotope (Deacon) on Oct 25, 2000 at 02:59 UTC |