Additionally, if the file was of sufficient size, due to the slowness of $read, it could take longer to check the file for changes than the delay the OP wants.