Personally, before checking for changes in file size, I would check and print what kinds of events the monitor sends you. Unfortunately, there is no easy way to ask the Delta about what it contains, so you will have to look at the raw contents using Data::Dumper and hope that they show what kinds of events get triggered by a change:
for my $change (@changes) { use Data::Dumper; warn "Got a change:"; warn Dumper $change;
Also, why are you calling chomp on an element of @changes? What do you expect @changes to contain?
In reply to Re^3: Directory Monitor
by Corion
in thread Directory Monitor
by perlmad
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |