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.
In reply to Re^3: Counting files in directory.
by chromatic
in thread Counting files in directory.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |