Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^5: Perl/Tk and exit(0) [Tk::exit]

by jcb (Parson)
on Apr 04, 2020 at 23:33 UTC ( [id://11115064]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl/Tk and exit(0) [Tk::exit]
in thread Perl/Tk and exit(0)

It was intended to corroborate and to point out a difference that helps to explain why Tk replaces exit. My understanding of the two is from the documentation and my experience, which does not include Tk on Windows, so the difference I know about is that Tk::exit reliably destroys all of the MainWindows, while CORE::exit allows a forked worker (such as performing an LWP request without blocking the GUI) to safely exit after reporting its results back. On X11, calling Tk::exit from a forked child also causes the parent to exit.

Replies are listed 'Best First'.
Re^6: Perl/Tk and exit(0) [Tk::exit]
by kcott (Archbishop) on Apr 05, 2020 at 00:26 UTC

    ++ Thanks for the reply. Looks like we're all good. :-)

    — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-24 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found