title: Creating an executable program from a Perl script
body: <p>I am trying to make an executable program from a finished perl script.  I installed the PAR::Packer module without difficulty. However, I do not believe I am doing this properly.  Below is the code inside the script I want to compile:</p>
  
  <pre><code>use PAR::Packer qw(pp);
  
  my %pp;
  % pp -o prlgap.exe prlgap.pl;
  </code></pre>
  
  <p>The above is an example I found on <em>Perl Monk</em>s. If I run the script and I get the following errors:</p>
  
  <pre><code>Unquoted string "prlgap" may clash with future reserved word at
  C:\Strawberry\prlgap.pl line 15. Syntax error at
  C:\Strawberry\prlgap.pl line 15 near "% pp -o "
  </code></pre>
  
  <p>The third line in the code is line 15. It seems strange to attempt to compile a program by running it. In my experience, this has always been done externally. What am I missing?</p>