Solved

Perl2Exe: too good to be troooo...?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

20 Experts available now in Live!

Get 1:1 Help Now