A little less ugly audit:
for (keys %$a) { delete $a->{$_} unless $a->{$_} }
Note: that should probably be unless defined $a->{$_} so we don't remove false keys, but I made the choice to mirror the OP's syntax.
In reply to Re^2: Shortcut operator for $a->{'b'}=$b if $b;
by radiantmatrix
in thread Shortcut operator for $a->{'b'}=$b if $b;
by rokadave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |