in reply to Re^3: Directory Monitor
in thread Directory Monitor

But The event is not working while update the file in the directory

# Called when file size changes $monitor->callback( size => sub { my ($file_name, $event, $change) = @_; warn "$file_name has changed size\n"; } );

Replies are listed 'Best First'.
Re^5: Directory Monitor
by Corion (Patriarch) on Jul 25, 2016 at 11:32 UTC

    Yes. Maybe the output of Data::Dumper could help to see whether there was any event raised when a file is changed.

    I'm not sure what could make the module fail to notice a change, but maybe you're working in the wrong directory?