At 15:43 2003-10-09, [EMAIL PROTECTED] wrote:
The problem I was having was how to get any new line back to the GUI. Once you do a Win32::GUI::Dialog, the perl script basically stops, and you can only work with the GUI. How would I set up a Sub to run in the background and update the GUI with any changes? I first thought of an alarm, but that function is not implemented on Win32 v5.6.1 (Activestate). I tried to use AddTimer, but that just seemed to do absolutely nothing once it hit the $file->read part (File::Tail). Is my only option to thread something off?
What you want is a Timer, but you can't call a blocking subroutine from within the Timer_Click event. That will stop the GUI execution.
Having glossed over the docs for File::Tail, it looks like the "select" method looks promising in that it doesn't block if there is no new data in the file.
/J -------- ------ ---- --- -- -- -- - - - - - Johan Lindström Sourcerer @ Boss Casinos [EMAIL PROTECTED] Latest bookmark: "Manageability - archive" http://www.manageability.org/blog/archive/ dmoz: ...ociety/Organizations/Student/Community_Service/ 322