in reply to Re^2: Counting files in directory.
in thread Counting files in directory.

Until you finish the loop, you don't how many files are in the directory. You have to count how many files are in the directory before you can say "x is file z of z."


Improve your skills with Modern Perl: the free book.