in reply to unable to monitor file size change with win32::changenotify

According to the documentation of this module, it can only monitor a directory and not an individual file. Also "true", should be 1 or another true value if you wish to monitor sub-directories too.

Your $notify object is therefore not correctly initialised and has thus the value undef. It is best to check if the constructor worked by adding "or die 'Object construction failed';" to line 5.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James