develooper Front page | perl.beginners | Postings from February 2002

Re: Hash Question

Thread Previous
Deen Hameed
February 1, 2002 10:10
Re: Hash Question
Message ID:

Keys are unique in a hash; what you put in them is up to you. the new
value will overwrite the old value, unless you append it during
assignment, using the . operator. Yes, you can store a hash in a hash in a 
hash... :)

try perldoc perldsc for stuff on data structures.


On Fri, 1 Feb 2002, Balint, Jess wrote:

> Since this is a beginners list, I thought I would be allowed to ask this
> question. Can there be multiple values for hash keys, or just one? The
> reason I am asking is that I am working on a statistical program and would
> need to use multiple hashes as values of another hash. If this is possible,
> please let me know. Thank you.
> -Jess

Deen Hameed -
One OS to rule them all, One OS to find them,
One OS to bring them all, and in the darkness bind them.
				-- Bilga

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About