miyagawa (owner)

Revisions

gist: 214756 Download_button fork
public
Public Clone URL: git://gist.github.com/214756.git
Embed All Files: show embed
error.txt #
1
2
3
4
File::ChangeNotify::Watcher::Default=HASH(0x8ccbfc) at /Users/miyagawa/tmp/file-watcher.pl line 6.
Can't locate object method "new" via package "File::ChangeNotify::Watcher::Inotify" at /Users/miyagawa/perl5/lib/perl5/File/ChangeNotify.pm line 20.
Exit 2
 
file-changenotify.pl #
1
2
3
4
5
6
7
8
#!/usr/bin/perl
use strict;
use File::ChangeNotify;
 
for (1..2) {
    my $cn = File::ChangeNotify->instantiate_watcher(directories => ['.']);
}