in reply to require without the exec
Then in the uninstaller just read in the file and eval it and $VAR1(or whatever you name the variable) will contain a reference to the original hash.use Data::Dumper; open(F, ">uninstall.dat") || die "Opening uninstall file failed: $!\n" +; print F Dumper \%hash; close(F);
|
---|