Elijah has asked for the wisdom of the Perl Monks concerning the following question:
Now the authors of Net::IRC forsaw this being an issue so they came up with the do_one_loop() function. However I am having difficulty coming up with a way where I can implement this function and return control back to Tk every time but still have the IRC module poll endlessly for events and as close as real time as possible. Right now I simply have a button which initiates the do_one_loop() function but this is a manual poll for info and not automatic. If I use the $irc->start function then the Net::IRC module never returns control back over to Tk and the gui appears to hang and becomes unusable.
Does anyone have any nifty ideas on how to share control back and forth real time between these two modules?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Event based modules playing nice together?
by merlyn (Sage) on Dec 31, 2004 at 03:01 UTC | |
|
Re: Event based modules playing nice together?
by William G. Davis (Friar) on Dec 31, 2004 at 04:44 UTC | |
|
Re: Event based modules playing nice together?
by Zaxo (Archbishop) on Dec 31, 2004 at 02:54 UTC |