use strict; $newfile = "./"; my $ct=0; opendir(DIR,$newfile) || die "Can not open directory: $!"; my @files = readdir(DIR); foreach(@files){ $ct++; } close(DIR);
In reply to Adding file to directory notification by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |