There's more than one way to do things | |
PerlMonks |
Re: Consise way to filter out keys with undef values from a hash slice?by choroba (Cardinal) |
on Jun 01, 2020 at 20:21 UTC ( [id://11117570]=note: print w/replies, xml ) | Need Help?? |
What about grepping the keys even before the undef values are created?
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|