in reply to Accessing Hashes

If you made:
foreach (@{$hash{test}}) { print "$_\n"; }
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 "%".