my @file = ; # reading all file to an array for (@file) { ... }