"be consistent" | |
PerlMonks |
Re: RFC: Learning Perl/Tkby thundergnat (Deacon) |
on Aug 10, 2011 at 14:39 UTC ( [id://919670]=note: print w/replies, xml ) | Need Help?? |
Arrgh. Don't use a bare exit; in a Tk program, use Tk::exit; It won't matter in this little snippet, but for a larger more complex GUI with multiple windows/widgets Tk::exit; will do a controlled cleanup and shutdown and avoid all kinds of warnings about unreleased resources. It might be worth mentioning the Widgets demo program included with Tk to help explain some of the widgets.
In Section
Meditations
|
|