in reply to How do I read files in a directory and not directories?
Consider the following:
Certainly not the only solution.. but one of...| hand waving on how we got here... | opendir(DIR,".") or die $!; while(my $name=readdir(DIR)){ next if -d $name; # takes care of . and .. as well | do something with file here... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
| A reply falls below the community's threshold of quality. You may see it by logging in. |