my $folder = "C:/Documents and Settings"; my $dh = undef; if(opendir($dh, $folder)) { while(defined(my $file = readdir($dh))) { next if $file =~ /^\.\.?$/; # skip /. and /.. next if -f "$folder/$file"; # skip files print "$folder/$file\n"; } closedir($dh); }
In reply to Re: wildcards
by esskar
in thread wildcards
by mallen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |