Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: endless loops for server and tk

by strat (Canon)
on Aug 03, 2007 at 10:09 UTC ( #630478=note: print w/ replies, xml ) Need Help??


in reply to endless loops for server and tk

If you need to split up MainLoop so you can integrate it into another loop, you can try something like:

while( .... ) { # some non-blocking stuff if( Tk::MainWindow->Count ) { local $inMainLoop = 1; DoOneEvent(0); } # if else { # no more mainwindows, finish somehow } # else # other non-blocking stuff } # while

(not tested; see: Tk.pm -> MainLoop)

But that may (or may not) become dangerous if Tk.pm is changed in future

Best regards,
perl -e "s>>*F>e=>y)\*martinF)stronat)=>print,print v8.8.8.32.11.32"


Comment on Re: endless loops for server and tk
Download Code
Re^2: endless loops for server and tk
by hudo (Novice) on Aug 10, 2007 at 03:47 UTC
    Sorry for the format of my last posting, I have two questions to the formatting.

    How can I write a "general" reply, not a reply to a answer of a certain user ? Is it the "Comment on" link ??

    How can I have the source code only as a download link like user strat or Errto has ? In each readmore section seems to be all of my source code sections. Is this normal or did I misunderstood something ?
    Thanks for the help.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://630478]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2014-11-26 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (168 votes), past polls