for my $studentInfo_row (@{$studentInfo}) { next unless $studentInfo_row->[0] % 2; ... }