Like this:
-onClick => sub {SUBMIT($blah1, $blah2)} [download]
In reply to Re: Passing variables to subroutines and Win32::GUI by pg in thread Passing variables to subroutines and Win32::GUI by ghettofinger