Now, this doesn't work but you should be able to get an idea of what I am trying to do, the values I want to be able to get are "blah 1" and "blah 2". I have tried:#!/usr/bin/perl -w use strict; my %hash; $hash{test}->{"blah 1"} = 1; $hash{test}->{"blah 2"} = 1; foreach ($hash{test}) { print "$_\n"; }
but that doesn't work either. can someone offer me some help?foreach (@{$hash{test}}) { print "$_\n"; }
In reply to Accessing Hashes by metlhed_
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |