What operating system are you on? For Win32, check out the Win32::ChangeNotify module.
-----Original Message----- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 13, 2005 9:46 AM To: beginners@perl.org Subject: file changes monitor Hi, I have created a program that monitors a text file which sits on another computer from the network, and when it sees a change in that file, it opens it, and gets the newly added lines. I have seen that the program consumes too many computer resources and I want to improve it a little. <snip> I know that I could put the program to sleep for a while, using sleep() or select() in the while loop, but... is this the only way? I would like to have a program which stays and waits for a signal or something, and when the remote file is modified, the program start to process it, then remains waiting again. <snip> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>