So, are the same-name files in the different directories the
same, and therefore you expect that the numbers reported
after each to be the same? You were not clear on what
was in your test set.
Anyway, a few points:
- I tend to explicitly close filehandles when
I am done with them, so there is no question as to its state
- would a file test operation, a la -s, work better? Is it
really line numbers you are interested in, or identical-ness?
- and the biggie, $lineCount is not getting reset!
Scott
Update to fix typo and add perlfunc link--Ugh, it took about
10 iterations to figure out that %3A is :