in reply to Monitoring Directories for changes

You can use the stat built-in funtion to detect when a directory changes.
Hope this helps

Hopes
$_=$,=q,\,@4O,,s,^$,$\,,s,s,^,b9,s, $_^=q,$\^-]!,,print