in reply to Re: print_r or var_dump?
in thread print_r or var_dump?

-=- MamuT -=-
Another feature is if you write it to file.
use Data::Dumper; my $conf = ( foo => 'foofoo', bar => 'barbar', ); open CONF,"myconfig.conf"; print CONF Dumper($conf); close CONF;
In another program you make it easy to load it back to Perl.
my $VAR1; #you must declare VAR1 from file if you use strict open CONF,"myconfig.conf"; my $conf = eval (join "",<CONF>); close CONF;
Now you have stored structure in $conf. Same you can do with perl object.

Mamut