use Cwd;
my $path_curr = getcwd;
opendir (DIR,$path_curr):
my @filelist = readdir(DIR):
my @dirlist = ();
foreach $files (@filelist):
if(($file eq '.')||($file eq '..')){
next;
}
else{
if(-d $file){
$dir_name_path = $path_curr."/$file":
push @dirlist, $dir_name_path;
}
}
转载请注明原文地址:https://blackberry.8miu.com/read-32920.html