I quite like <a href="http://search.cpan.org/~drolsky/File-ChangeNotify-0.17/lib/File/ChangeNotify.pm" rel="nofollow">http://search.cpan.org/~drolsky/File-ChangeNotify-0.17/lib/F...</a> for perl. It's cross-platform (backends for linux, OSX/BSD and Win32 afaik), and is very straightforward to use.