#!/usr/bin/perl @files = ; foreach $file (@files){ print "$file \n"; # found to be ok....prints all the files... open(MYFILE,"<","C:/Perl/bin/Anti/$file") or die "Failed to open file: $file:$! "; while() { print "$_ \n \n \n"; } }