Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
use strict; $newfile = "./"; my $ct=0; opendir(DIR,$newfile) || die "Can not open directory: $!"; my @files = readdir(DIR); foreach(@files){ $ct++; } close(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding file to directory notification
by John M. Dlugosz (Monsignor) on Nov 12, 2002 at 20:13 UTC | |
|
Re: Adding file to directory notification
by robartes (Priest) on Nov 12, 2002 at 20:13 UTC |