Leser: 3
9 Einträge, 1 Seite |
1
2
3
4
5
$dir = 'datas';
opendir DIR, $dir or die "Can't open $dir: $!";
my @files = grep (-f "$dir/$_",readdir DIR);
closedir DIR;
1
2
3
4
5
$dir = 'datas';
opendir DIR, $dir or die "Can't open $dir: $!";
my @files = grep ! /\.html$/, readdir DIR;
closedir DIR;
1
2
3
4
5
$dir = 'datas';
opendir DIR, $dir or die "Can't open $dir: $!";
my @files = grep ! /\.html$|\.csv$/, readdir DIR;
closedir DIR;
1
2
3
4
$dir = 'datas';
opendir DIR, $dir or die "Can't open $dir: $!";
my @files = grep -f "$dir/$_" && ! /\.html$|\.csv$/, readdir DIR;
closedir DIR;
9 Einträge, 1 Seite |