for my $gene (@all_genes) { say $gene if @covered_genes == grep $_ ne $gene, @covered_genes; }
A benchmark shows your way, as inefficient as it might be, is about 15% faster.
In reply to Re: grep not equal
by choroba
in thread grep not equal
by rnaeye
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |