in reply to Re: Creating a non-UI event in Perl/Tk
in thread Creating a non-UI event in Perl/Tk

If my main_logic loop was only working with widget operations, yes. It isn't -- it's doing significant I/O. The problem with the code above is that main_logic will run until completion (about 20 minutes on average) before MainLoop is called.

While I could work some repeat magic, the resulting code is much less readable (I have about 300 lines of code in my main_logic loop).

require General::Disclaimer;

All code, unless otherwise noted, is untested

"All it will give you though, are headaches after headaches as it misinterprets your instructions in the most innovative yet useless ways." - Maypole and I - Tales from the Frontier of a Relationship (by Corion)

  • Comment on Re^2: Creating a non-UI event in Perl/Tk