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


in reply to Recreating hash

Data::Dumper is used to create such dumps. For example,

use Data::Dumper; print Dumper \%myhash;
("\" is useful (especially in case of arrays), because it creates a refecence, so Dumper dumps the structure as a single object).

To get your structure back in the program, you can use do or eval. See Data::Dumper and eval for more info on restoring Dumper files.

Sorry if my advice was wrong.