use Cwd;
my $directory = getcwd();
opendir (DIR, $directory) or die "Can't open directory \"$directory\" - $!";
my @filelist = grep(/\.csv$/i, readdir(DIR));;
foreach my $file (@filelist) {
print "$file\n";
}
closedir(DIR);
my $directory = getcwd();
opendir (DIR, $directory) or die "Can't open directory \"$directory\" - $!";
my @filelist = grep(/\.csv$/i, readdir(DIR));;
foreach my $file (@filelist) {
print "$file\n";
}
closedir(DIR);
No comments :
Post a Comment