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.
In Section
Seekers of Perl Wisdom