|
Perl: hash tying
I'm doing a Perl project for my computing A level (UK) and I'm using hash ties to access a database. When using multiple ties it seems that all the hashes are tied to the same object, where early in the program I have a tie to one hash with a certain contents I later tie a different hash and it has all the old keys and values as well, ones that haven't been overwritten. How can I make it create a new hash each time I want a tie?
Thanks, Dom.
|