Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple values with hash

Status
Not open for further replies.

mooniron

Programmer
Dec 15, 2002
26
TR
How can I enter multiple values per key?
Thanks
 
You need to use a hash of arrays (the values of the hash are
arrays -- references to arrays, actually) or a hash of hashes (the values of the hash are references to other hashes).

Check out perldoc on the following:
perldsc (Perl data structures coolbook)
perlreftut (Perl references tutorial)
perlref (Perl references)
perllol (Perl list of lists)

I'd try perldsc first, as that's (for me at least) the most
straightforward.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top