into:foreach (@{$hash{test}}) { print "$_\n"; }
you would be printing the keys and values each on a line. The "Not an ARRAY reference" error that you were receiveing was becuase of "@" as opposed to "%".foreach (%{$hash{test}}) { print "$_\n"; }
In reply to Re: Accessing Hashes
by dug
in thread Accessing Hashes
by metlhed_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |