Help for this page
use Tk; ... $mw->Button(-text=>'Close Toplevel',-command=>\&close_toplevel)->pack; MainLoop;