Solved

Perl2Exe: too good to be troooo...?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now