http://qs321.pair.com?node_id=782383


in reply to Re^2: Is there a way to free the Tk MainLoop without getting into parallel programming?
in thread Is there a way to free the Tk MainLoop without getting into parallel programming?

It depends on the nature of the computations. If you're looping through that file yourself:

my $t = time(); while (<$input_fh>) { process_a_line(); if (time() - $t >= 1) { $widget->update(); $t = time(); } }

If the entire file is being atomically processed, then you'll need to get deeper into parallel programming.