in reply to Read only Files in a Directory
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read only Files in a Directory
by johngg (Canon) on Aug 01, 2006 at 23:12 UTC | |
by jwkrahn (Abbot) on Aug 02, 2006 at 00:20 UTC | |
by Anonymous Monk on Apr 06, 2007 at 01:23 UTC |