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


in reply to Accessing variables in an external hash without eval

I think in reality you have a my in front of the %hash, probably inside a block.

You should show us the real code. And please try to isolate the problem step by step.

On a side note, you can use "do filepath" instead of all the reading and eval stuff.