in reply to Howt to read an array from some other file.

You could try:
In x.pl:
require y.pl;

The hash should then be available, however i dont think this is a good way to write code, if you need scripts to access common data or methods , put them in a module.
I should really do something about this apathy ... but i just cant be bothered