I am not sure, but can Tie::Hash etc be used by tying hash to a local file to reduce the memory use? regards.