Dr Manhattan has asked for the wisdom of the Perl Monks concerning the following question:
Hi all
Quick question- How do I reference a value in a hash in a hash, while I'm in a foreach loop?
foreach my $x (values %hash{}{}) { #do something }
I'm really not sure how its supposed to work and I can't find something similar on the web
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Loop reference to value in hash of hash
by choroba (Cardinal) on Jul 31, 2013 at 08:54 UTC | |
|
Re: Loop reference to value in hash of hash
by Loops (Curate) on Jul 31, 2013 at 08:51 UTC | |
|
Re: Loop reference to value in hash of hash
by Anonymous Monk on Jul 31, 2013 at 09:01 UTC | |
|
Re: Loop reference to value in hash of hash
by Anonymous Monk on Jul 31, 2013 at 12:24 UTC |