grep { (@$_ > 2 && $_->[2] > 4) && (@$_ > 4 && $_->[4] > 3) } $VAR1 = [ [ 'D', 6, 7, 8, 8 ], [ 'E', 2, 5, 4, 5 ] ];