Question: Turn the Perl script into the executable (Exe) file under Windows
Answer: Use a PAR module
specific method:
1, install the PAR module
If you use ActivePerl: PPM> Install Par.
If not, download PAR (from cpan). Perl makefile.pl; make; make install
2, use
Pp -o yourfile.exe yourfile.pl
After you get an Exe file, double click. Look is not very cool.
-------------------------------------------------- --------
Par's features are not only the case, look at his name PAR, do you have to learn Java?
In fact, PAR and JAR are very similar.
In Java, I can
Java -jar Yourjarfile.jar runs a JAR file. In Perl
Perl-MPAR YourParfile.par runs. The method of packing a PAR is as follows:
PP -P -O Yourfile.par yourfile.pl