in reply to Re^3: writing to logfile in a loop
in thread writing to logfile in a loop
All Windows can (and must) handle Windows messages. If your Perl app has a window (using Tk, wxPerl, or whatever), then yes. Unfortunately, most Perl scripts don't have a window. (The console doesn't count because Perl doesn't manage that window.)