in reply to Re^3: Perl/Tk and exit(0) [Tk::exit]
in thread Perl/Tk and exit(0)
As I understand, the two exit procedures only matter if you fork.
This is on windows, clean exit
perl -e"use Tk; $mw=tkinit; $mw->Button(-command=>sub{ Tk::exit })->pa +ck; MainLoop; "
Dirty exit
perl -e"use Tk; $mw=tkinit; $mw->Button(-command=>sub{ CORE::exit })-> +pack; MainLoop; " perl.exe has encountered a problem and needs to close. Faulting application perl.exe, version 5.20.3.3, faulting module tk.xs +.dll, version 8.4.2.5, fault address 0x00044b1e.
|
|---|