o2bwise has asked for the wisdom of the Perl Monks concerning the following question:
Basically, I have a few variables at the ip address level. $acct_id specifies accounts. Each account has a bunch of ip's. I have an array that holds every account ID. So, I want to do be able to loop through the hash for every ip at each given value for acct_id, so that I can print out the ip and various variable values, such as an snmp community read setting.%customers = (); $customers{$acct_id}{$ip}{'variableName'} = 'valueForVariable';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: traversing through a (complex for me) data structure
by madbombX (Hermit) on Aug 25, 2006 at 18:22 UTC | |
|
Re: traversing through a (complex for me) data structure
by derby (Abbot) on Aug 25, 2006 at 18:21 UTC | |
|
Re: traversing through a (complex for me) data structure
by planetscape (Chancellor) on Aug 26, 2006 at 07:54 UTC | |
|
Re: traversing through a (complex for me) data structure
by McDarren (Abbot) on Aug 25, 2006 at 23:42 UTC | |
|
Re: traversing through a (complex for me) data structure
by o2bwise (Scribe) on Aug 25, 2006 at 19:43 UTC |