in reply to How to check if hash has empty hash reference? [RESOLVED]
delete @hash{ grep ref($hash{$_}) eq 'HASH' && %{$hash{$_}} == 0, keys + %hash };
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to check if hash has empty hash reference?
by thanos1983 (Parson) on Feb 15, 2017 at 16:55 UTC |