Your comment is wrong, you definitely need to change that code.#### Need to keep this code unchanged opendir DIR, "Whatever/path"; @files=grep { !/^\.+$/ } readdir(DIR); closedir DIR;
#### Need to keep this code unchanged opendir DIR, 'Whatever/path' or die "Cannot open 'Whatever/path' $!"; my @files = map "Whatever/path/$_" grep !/\A\.\.?\z/, readdir DIR; closedir DIR;
In reply to Re: Read only Files in a Directory
by jwkrahn
in thread Read only Files in a Directory
by Newbee21369
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |