openddir(DIR, $rootDir); @sub_dirs = readdir(DIR); closedir(DIR); foreach my $d (@sub_dirs) { if( $d =~ / regexp / ) { # you found your dir last; } }
In reply to Re: Check if dir exist using regexp
by olus
in thread Check if dir exist using regexp
by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |