It's not if( undef $subnets{$ip}{$comment} ), it's if( ! defined $subnets{$ip....
Right now you're setting $subnets{$ip}{$comment} to undef.
Dave
In reply to Re: Check/set hash of hashes value
by davido
in thread Check/set hash of hashes value
by stroke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |