#!/usr/bin/perl use strict; use warnings; while (opendir my $dirh, "/somewhere/else") { while (my $file = readdir $dirh) { print "$file\n"; } sleep 1; }
In reply to Re: The "readdir()" fails to detect files created after the call to "opendir()"
by choroba
in thread The "readdir()" fails to detect files created after the call to "opendir()"
by thejasviv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |