in reply to Array inside hashes

How do I make a hash of arrays in the Q&A section might have answered your question. But here's an example:
%hash = (name => foo, list => [1, 2, 3]); print join "\n", (@{$hash{list}}); print "\n${$hash{list}}[1]\n"; # Print 2
Update: Ignore this. I really need to keep another window open to see who else has answered before hitting submit.

Replies are listed 'Best First'.
RE: (2) Array inside hashes
by Russ (Deacon) on Jul 23, 2000 at 07:15 UTC