http://www.perlmonks.org?node_id=234429


in reply to Re: Re: Re: Module to read a dumped file
in thread Module to read a dumped file

That it was that simple after all. This is doing the job except for one thing. If your hashtable contains a non-referenced top level it will be removed during the input using do. See sample below

Original hash table

$VAR1 = 'dataParams'; $VAR2 = { 'license_feature' => { 'val' => 'geditor' }, };

New hash table

$VAR1 = 'license_feature'; $VAR2 = { 'val' => 'geditor' };

So it is not exactly the same but it already helps a lot.