http://www.perlmonks.org?node_id=536410


in reply to Re^3: Problem with POE-Component-DirWatch
in thread Problem with POE-Component-DirWatch

Find the rewind line in the poll subroutine in the module and replace it with:
# rewind to directory start # $heap->{DirHandle}->rewind; $heap->{DirHandle}->close; $heap->{DirHandle}->open($heap->{Directory}) or croak "Can't open $heap->{Directory}: $!\n";
The module and your code seem to work with the above changes. (I've emailed the module author with a link to this thread).