Re: Reading and comparing files from a directory

2003-07-09 Thread Wiggins d'Anconia
Greenhalgh David wrote: If I am reading this correctly (which I am probably not!) you need another foreach loop in there somewhere. When you compare $file with $lines, you are trying to compare the contents of @temp. I think you need to wrap your comparison with a foreach loop: foreach $file (

Re: Reading and comparing files from a directory

2003-07-09 Thread Greenhalgh David
If I am reading this correctly (which I am probably not!) you need another foreach loop in there somewhere. When you compare $file with $lines, you are trying to compare the contents of @temp. I think you need to wrap your comparison with a foreach loop: foreach $file (sort readdir (DH)) {

Reading and comparing files from a directory

2003-07-09 Thread Sara
I m trying to read the files in a directory and match them with a same file names in text list. Below given are the couple of lines, but I am unable to get the results, rather getting the same line repeated This fileno1 does NOT found in directory but its in the list This fileno2 does NOT found