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:
use PAR::Packer qw(pp);
my %pp;
% pp -o prlgap.exe prlgap.pl;
The above is an example I found on Perl Monks. If I run the script and I get the following errors:
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 "
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?