in reply to (Golf) Warningless Comparison
Not sure how much shorter it is, if at all, didn't have time to count. (Oh my, stress.)my $chk = sub { (1 == grep defined, @_) or ($_[0] ne $_[1]) }; grep $chk->(values @{$h->{$_}}['O','C']), keys %$h;
Makeshifts last the longest.
|
|---|