If you want to test for equality, then by all means!
if ( grep { $index == $_ } @index_corr_file ) { # whatever } [download]
In reply to Re^2: Regex problem by edan in thread Regex problem by Anonymous Monk