I could not find how to read back a dumped fileLike so
For more info see the ever-magical do() function.use Data::Dumper; my %hash = qw( foo one bar two baz three ); open DATA, ">whatever.dat"; print DATA Dumper(\%hash); close DATA; my %hash2 = %{ do "whatever.dat" }; print Dumper(\%hash2); __output__ $VAR1 = { 'foo' => 'one', 'baz' => 'three', 'bar' => 'two' };
_________
broquaint
In reply to Re: Re: Re: Module to read a dumped file
by broquaint
in thread Module to read a dumped file
by juo
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |