in reply to Can't access hash of hashes.
Cheers,my %prochash; # sub call to populate hash for (my $i = 0; $i < $prochash{NumProcessors}; $i++) { foreach (keys %{$prochash{'Processor$i'}}) { print "$_ : ",$prochash{"Processor$i"}->{$_},"\n"; } }
Update: Oy! That's what I get for dashing off a quick answer prior to running to work. I did not say "hash context". I wouldn't say anything like that. Would I? :( Sigh... time to inject more coffee.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Guildenstern) RE: Re: Can't access hash of hashes.
by Guildenstern (Deacon) on Sep 07, 2000 at 18:47 UTC | |
by merlyn (Sage) on Sep 07, 2000 at 18:51 UTC | |
by Guildenstern (Deacon) on Sep 07, 2000 at 19:01 UTC | |
by swiftone (Curate) on Sep 07, 2000 at 20:01 UTC | |
by tye (Sage) on Sep 07, 2000 at 19:47 UTC |