in reply to Re: Check/set hash of hashes value
in thread Check/set hash of hashes value
You can use this way as well..
foreach $ip (keys(%subnets)) { if("$subnets{$ip}{'comment'}" eq "") { $subnets{$ip}{'comment'} = "ALLOCATED"; } print "$subnets{$ip}{'comment'}\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check/set hash of hashes value
by kennethk (Abbot) on Jun 25, 2013 at 15:47 UTC |