title: How do pass arguments to subroutines in Perl/Tk?
body: <p>I have designed one sign-up form,in this form after getting all necessary values I will click submit button.</p>
  
  <p>And while clicking that submit button I want to call one function and I want to pass the arguments to that function.</p>
  
  <p>I have written code for this purpose,but the function is called first before getting the details.(i.e)after getting the details in sign-up form I need to pass these values to one function and I need to validate those values.</p>
  
  <p>But what happened was,before getting the details the function get called.</p>