if ((grep /^0$/, @array[0,1]) == 2){ say "both are zero"; }