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... }
In reply to Re: How do I read files in a directory and not directories?
by blue_cowdawg
in thread How do I read files in a directory and not directories?
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |