in reply to Check/set hash of hashes value
Thanks people - that did the trick ! I've tested out both and they work. But perhaps for me, this is more obvious and will make it easier for me to work out exactly what I'm doing here, should I need to look back on it:
foreach my $ip ( keys %subnets ) { $subnets{$ip}{comment} //= 'ALLOCATED'; }
Thanks again
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check/set hash of hashes value
by sammy_01 (Initiate) on Jun 25, 2013 at 05:43 UTC | |
by kennethk (Abbot) on Jun 25, 2013 at 15:47 UTC |