Scalar value @file2[$cnts++] better written as @file2[$cnts++] at -foo.pl line 327.