if ( grep { $index == $_ } @index_corr_file ) { # whatever }