http://qs321.pair.com?node_id=1228619


in reply to Reading a hash structure stored in a file

The key advice is in the error: did you forget to declare "my %hash1"?

So add "my %hash1;" either to your script, or the evaled file. Somewhere before assigning to it.