Data::Dumper

(thing) by eric+ Sun Jul 16 2000 at 8:21:15

Data::Dumper is a perl module that's often used to save and restore arbitrary data structures (including objects.) The beauty of Data::Dumper is that it writes out the data structure as a string which can be simply eval'd back to whatever it was before.

A trivial example is:

#!/usr/bin/perl -w

use vars qw / $VAR1 /;
use strict;

use Data::Dumper;

my $data =  1, 2, 3, 4, 5 ;
my $saved_data = Dumper( $data );
my $resored_data = eval ( $saved_data );
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.