in reply to Re: Re: Module to read a dumped file
in thread Module to read a dumped file
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Module to read a dumped file
by juo (Curate) on Feb 11, 2003 at 15:55 UTC | |
by flounder99 (Friar) on Feb 11, 2003 at 16:17 UTC | |
by broquaint (Abbot) on Feb 11, 2003 at 16:19 UTC | |
by demerphq (Chancellor) on Feb 12, 2003 at 00:07 UTC | |
by juo (Curate) on Feb 12, 2003 at 15:12 UTC |