SysAdm has asked for the wisdom of the Perl Monks concerning the following question:
opendir DIR, "$config{'basepath'}$key" or &oops("Category directory $k +ey could not be opened."); readdir DIR;readdir DIR; my $numfiles = scalar @{[readdir DIR]}; closedir DIR;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n) Re: Counting only certain files...
by ar0n (Priest) on May 17, 2001 at 21:19 UTC | |
|
Re: Counting only certain files...
by SilverB1rd (Scribe) on May 17, 2001 at 21:23 UTC | |
by perlplexer (Hermit) on May 17, 2001 at 21:37 UTC | |
by SysAdm (Novice) on May 18, 2001 at 09:26 UTC | |
|
Re: Counting only certain files...
by blue_cowdawg (Monsignor) on May 17, 2001 at 22:10 UTC |