Solved

Perl2Exe: too good to be troooo...?

Posted on 1997-11-20
5
188 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 20 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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

726 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