Larry pointed out to me a case where 2 list context readdir's,
with an intervening rewinddir *is* the solution - detecting changes in a
directory, e.g.:
opendir DH, ".";
@content1 = readdir(DH);
print join("\n",@content1, "\n");
system("touch `date '+%Y%m%d%H%M%S'`");
rewinddir(DH);
@content1 = readdir(DH);
print join("\n",@content1, "\n");
shows the creation of the new file in the second print. (For non-UNIX
folks, system command used creates a file whose name is the
time in yyyymmddhhmmss format.)
So I assumed to much about the original application, plus I was rude.
Sorry about that.
- Bob Niederman