Thread Verzeichnisse auflisten (5 answers)
Opened by alexus-777 at 2004-04-26 23:19

Gast Gast
 2004-04-27 12:28
#81867 #81867
oder so ...
Code: (dl )
1
2
3
4
5
6
7
8
9
my $root_path = 'absoluter Pfad zum Startverzeichnis';
my $start_dir = 'Startverzeichnis';

opendir THEDIR, "$root_path/$start_dir" or die $!;
readdir THEDIR for 0 .. 1;
@dirs = grep -d "$root_path/$start_dir/$_", readdir THEDIR;
closedir THEDIR;

print($_, "\n") foreach @dirs;

View full thread Verzeichnisse auflisten