given that you installed the package liblinux-inotify2-perl, you can quite simply get notifications in PERL. Here's how ^_^
nb: bindings also exists for python and ruby, and inotify-tools package provide watch & wait commands suitable for shell-scripters.