delete @hash{ grep ref($hash{$_}) eq 'HASH' && %{$hash{$_}} == 0, keys + %hash };
In reply to Re: How to check if hash has empty hash reference?
by tybalt89
in thread How to check if hash has empty hash reference? [RESOLVED]
by thanos1983
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |