in reply to Re: Which Data Structure Should I Be Using?
in thread Which Data Structure Should I Be Using?
and here is what I get:foreach my $ip (keys %data) { print "IP = $ip\n"; for my $cname ( @{$data{$ip}{cname}} ) { print "CName = $cname\n"; } }
How do I keep the cname value with the ip?IP = 192.168.30.136 CNAME = salamander.acme.com CNAME = AMSPWD030WKG CNAME = VLW4S CNAME = WKBX0010B-A IP = 192.168.30.130 CNAME = salamander.acme.com CNAME = AMSPWD030WKG CNAME = VLW4S CNAME = WKBX0010B-A IP = 192.168.30.131 CNAME = salamander.acme.com CNAME = AMSPWD030WKG CNAME = VLW4S CNAME = WKBX0010B-A IP = 192.168.30.133 CNAME = salamander.acme.com CNAME = AMSPWD030WKG CNAME = VLW4S CNAME = WKBX0010B-A
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re3: Which Data Structure Should I Be Using?
by dragonchild (Archbishop) on Apr 02, 2002 at 20:36 UTC |