in reply to How to access a hash from another file

You create the hash as a lexical variable. Lexical variables are only accessable from within the smallest lexical scope they are created in. A file is a lexical scope. So, the answer is, you cannot.

Having said that, you could create a pointer to the hash, and share the pointer - accessing the hash through the pointer. Or you replace my with our, and access the hash as you'd access any other package variable.

  • Comment on Re: How to access a hash from another file