in reply to Perl Tk : Clearing Frame Elements
You create a Tk::Button and define the required action using the -command option which takes an argument as described in Tk::callbacks