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

modification on hashes/unique values

Thread Next
Ben Crane
December 2, 2002 06:38
modification on hashes/unique values
Message ID:

a slight change to the previous mail: if I've got a
key (e.g. A, and I have 3 or 4 keys (which are all A)
which correspond to different data...

e.g. Acorn Drive is a key, but there are several parts
the make up Acorn Drive...I want a key (Acorn drive)
to be able to refer to EVERY part of it...

so If I've got a hash, that looks like:

Acorn Drive => A
Acorn Drive => B

surely, if I match one key (Acorn Drive), it'll make
multiple matches through the hash?? at the moment, I
enter a key, and it only returns one record...have a
missed the point completely??

how do I make multiple matches within a hash with one
key only?


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

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