for my $file (@array){ #do some stuff with $file }