title: Steps in order to pass data from HTML form to Perl script
body: <p>I have created a simple HTML, which contains the form below:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>&lt;form action="WEB-INF/cgi/run.pl" method="post"&gt;
        &lt;table border="0" cellspacing="0"&gt; 
  
        &lt;tbody&gt;
        &lt;tr&gt;&lt;th align="center" bgcolor="F7F5F2"&gt; &lt;p class="normal"&gt;Submission Form&lt;/p&gt; &lt;/th&gt;&lt;/tr&gt;
  
        &lt;tr&gt;&lt;td align="center" bgcolor="F7F5F2"&gt; &lt;p class="normal"&gt;Insert your text below:&lt;/p&gt; &lt;/td&gt;&lt;/tr&gt;
        &lt;tr&gt;&lt;td&gt;&lt;textarea wrap="virtual" name="seq_data" rows="15" cols="80"&gt;&lt;/textarea&gt;&lt;/td&gt;&lt;/tr&gt;  
      &lt;/tbody&gt;&lt;/table&gt;
      or upload a file :   &lt;input type="file" name="file" size="29" border="0"&gt;&lt;br&gt;&lt;br&gt;
      &lt;input class="normalc" value="Submit Query" type="submit"&gt;
      &lt;input class="normalc" value="Clear Form" type="reset"&gt;&lt;p&gt;&lt;/p&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I need to pass the data from the form as input to a perl script (run.pl).</p>
  
  <p>While searching the internet I have read that:
  1) I need to test my website through apache tomcat. I have installed apache version 7.0 and modified the Tomcat 7.0/conf/web.xml file by removing the XML comments from around this servlet:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;servlet&gt;
      &lt;servlet-name&gt;default&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.apache.catalina.servlets.DefaultServlet&lt;/servlet-class&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;debug&lt;/param-name&gt;
          &lt;param-value&gt;0&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;init-param&gt;
          &lt;param-name&gt;listings&lt;/param-name&gt;
          &lt;param-value&gt;false&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  </code></pre>
  
  <p>I have also created the directory   "WEB-INF/cgi" in which I placed my perl script.</p>
  
  <p>2) I need to modify my Perl script, but I can't find out what I should add in order to pass the data from the html form to my script.</p>
  
  <p>I don't know if there are any other necessary steps other than modifying Tomcat and Perl script.
  I have read many relevant topics, but I still can't find a step by step guide. Please help.</p>