title: Pass variables from HTML form to Perl script
body: <p>I'm having some difficulty creating an HTML front-end for a Perl script we use in-house for config generation. We've moved from a Linux system to a Windows server instance and I've tested CGI/Perl are working as expected. The script itself uses the following format:</p>
  
  <pre><code>my $unitname; #name of device
  my $clientid; #name of client
  my $version;  #version of device firmware
  </code></pre>
  
  <p>These variables are called via command line, which prints the config to the cli:</p>
  
  <pre><code>./confgen.pl -u "unitname" -c "clientid" -v "version"
  </code></pre>
  
  <p>What I am trying to acheive is to use the existing variables in an HTML Form, but am not having any luck. So far I have this:</p>
  
  <pre><code>&lt;form action confgen.pl method "get"&gt;
      &lt;input type="text" name="unitname"&gt;
      &lt;input type="text" name="clientid"&gt;
      &lt;input type="text" name="version"&gt;
      &lt;input type="submit" Value="generate"
  &lt;/form&gt;
  </code></pre>
  
  <p>Any advice or examples? I should add that CGI and Perl aren't my first languages, but I've been trying my best.</p>