in reply to Is this "next unless $keys" necessary?
It's not too dissimilar to:
foreach $key (sort grep $_, keys %{$obj->somehash}) { . . .
Update:
Updated to reflect the actual logic - original only tested for empty string ... c/w true/false test as pointed out elsewhere by Fletch.
|
|---|