Button(-text=> "Exit", -command=> sub { Quiting::quiting(); }, ) ->pack(-side=> 'bottom', -fill => 'x', -expand => 1 ); #### package Quiting; sub quiting { # Delete a temporary file system ('rm /tmp/mytmp.txt') if (-e '/tmp/mytmp.txt'); exit(0); } #### --------> SV* sv_bless(SV* sv, HV* stash);