in reply to Re^2: Directory Monitor
in thread Directory Monitor
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Directory Monitor
by perlmad (Sexton) on Jul 25, 2016 at 11:28 UTC | |
by Corion (Patriarch) on Jul 25, 2016 at 11:32 UTC |