Re: how to iterate through a list of files in a directory and compare them to an index.

2008-03-07 Thread John W. Krahn
Angus Glanville wrote: Hi, Hello, I here is a sample of the problem I am trying to solve. I have an index.txt file that contains two values separated by a pipe symbol like this: junk_file_test1|test1.pdf junk_file_test2|test2.pdf I slurp the file in, open a directory handle and tr

Re: how to iterate through a list of files in a directory and compare them to an index.

2008-03-07 Thread Gunnar Hjalmarsson
Angus Glanville wrote: I have an index.txt file that contains two values separated by a pipe symbol like this: junk_file_test1|test1.pdf junk_file_test2|test2.pdf I slurp the file in, That not what you do in the code you posted. open a directory handle and try to compare the value t

Re: how to iterate through a list of files in a directory and compare them to an index.

2008-03-07 Thread Chas. Owens
On Fri, Mar 7, 2008 at 2:00 AM, Angus Glanville <[EMAIL PROTECTED]> wrote: snip > It seems like the all the > contents of the file index are run against one iteration of the > directory contents then it quits. snip > opendir (PDFDIR, $pdf_dir) || die "Can't open $pdf_dir: $!\n"; > > while (my

how to iterate through a list of files in a directory and compare them to an index.

2008-03-06 Thread Angus Glanville
Hi, I here is a sample of the problem I am trying to solve. I have an index.txt file that contains two values separated by a pipe symbol like this: junk_file_test1|test1.pdf junk_file_test2|test2.pdf I slurp the file in, open a directory handle and try to compare the value