in reply to Re: Counting only certain files...
in thread Counting only certain files...
--perlplexermy $total = 0; opendir DIR, "$config{'basepath'}$key" or &oops("Category directory $k +ey could not be opened."); while ($_ = readdir DIR){$total++ if -f and /\d/o } closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Counting only certain files...
by SysAdm (Novice) on May 18, 2001 at 09:26 UTC |