in reply to Help periodically scanning directories to process new files
while (1) { rewinddir(DIR); foreach my $file (grep -f, map "$dir/$_", readdir DIR) { GoProcess($file); } sleep 30; } [download]
-- Randal L. Schwartz, Perl hacker