Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Perl2Exe: too good to be troooo...?

Posted on 1997-11-20
5
Medium Priority
?
192 Views
Last Modified: 2008-03-06
If I use Perl2Exe to convert all 'Pls' to 'exes' -- does this meant i need never have to install any Perl on the server?
0
Comment
Question by:eriklee
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 

Accepted Solution

by:
adrianward earned 80 total points
ID: 1208817
Yes, which is very useful.

The EXEs will be quite large, but you can reduce the size by using the -small option on perl2exe, but if you do that you have to distribute the PERL DLL too.

If you reference any libraries in the perl script you want to compile, you have to compile them on the command line too:

perl2exe maincode.pl a_library.pl cgi-lib.pl

(for example)

Hope this is some use
0
 

Author Comment

by:eriklee
ID: 1208818
Thanks adrian - i m be fiddling with it soon.
0
 

Expert Comment

by:adrianward
ID: 1208819
Yeah, I had a closer look into it and what it does is quite cunning really. It builds an EXE file which, when run, extracts PERL.EXE, PERLxxx.DLL, your source code and all the libraries needed into the \WINDOWS\TEMP directory, then simply runs the PERL interpreter as normal.

So, it's a bit of a cheat in that it doesn't really "compile" the program, but atleast it means you have only one single EXE file to distribute.


0
 

Author Comment

by:eriklee
ID: 1208820
hey, thanks again Adrian.
If you're based in London, I reckon you must be either an Arsenal or a Chelsea fan... or even Spurs.
0
 

Expert Comment

by:adrianward
ID: 1208821
Ha ha. Guess again. I'm not really a follower of football, suprisingly - for a Londoner.

:-)
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Six Sigma Control Plans

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question