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

    Hello tybalt89

    Thanks for the one liner. I also some times like to write everything in one line. It looks simple neat and clean.

    Thanks again for your time and effort assisting me.

    Seeking for Perl wisdom...on the process of learning...not there...yet!