http://qs1969.pair.com?node_id=384649


in reply to Subs attached to Tk Buttons

Another way to do it besides what others have already told you is to use a closure
$widget->Button(-text=>"mybutton",-command=>sub { mysub("a1","a2",@_) +};