in reply to Getting a List of Files Via Glob
combo. If you simply want to process every file in a directory, instead of @files = readdir(DIR) you could useDIR = opendir( "$area" ) or die "Can't read '$area' : $!"; @files = readdir( DIR ) or die "Error reading from '$area' : $!"; closedir( DIR ); # Don't care about errors here
while ($file = readdir(DIR)) { ... do your stuff to $file ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: I don't use glob, I use readdir
by merlyn (Sage) on May 29, 2000 at 19:09 UTC | |
|
RE: I don't use glob, I use readdir
by t0mas (Priest) on May 30, 2000 at 13:46 UTC | |
by Corion (Patriarch) on May 30, 2000 at 15:12 UTC | |
by t0mas (Priest) on May 30, 2000 at 17:27 UTC | |
by Corion (Patriarch) on May 30, 2000 at 19:54 UTC | |
by t0mas (Priest) on Jun 02, 2000 at 00:20 UTC | |
| |
by t0mas (Priest) on May 31, 2000 at 10:22 UTC | |
|
RE: I don't use glob, I use readdir
by Zoogie (Curate) on May 30, 2000 at 21:09 UTC | |
by Corion (Patriarch) on May 30, 2000 at 21:53 UTC |