rsriram has asked for the wisdom of the Perl Monks concerning the following question:

Hello all,

I wrote a perl script and it was giving me the preferred output until I converted it to a executable using perl2exe. My assumption is that any script which works on a computer where perl is installed should produce the same result when it is converted to a exe and executed on a computer which does not have perl. Will there be anything else which will lead to a problem like this? Please help. Perl2exe I am using is V8.80, purchased from IndigoSTAR Software.

  • Comment on Weird problem when converting pl file to exe

Replies are listed 'Best First'.
Re: Weird problem when converting pl file to exe
by ww (Archbishop) on Aug 03, 2007 at 09:35 UTC

    You may wish to read perl2exe -gui fails.

    It would be well to read How do I post a question effectively? and to use search.

    And it would be best to be more specific about "a problem like this" if you have hope of specific help.

    Update: A visit to Indigo appears to confirm your "assumption" that a working Perl program converted to an .exe should work on any machine (1): "(Perl2Exe) allows you to create stand alone programs in perl that do not require the perl interpreter.... Perl2Exe can generate executables for Windows and Unix target hosts."

    Note, however, that "Perl2Exe for Windows requires an installation of Perl on your machine."

    1: Indigo is specific in saying that some of its aps support Vista. I found no such note re Perl2Exe. Rather, there is this statement: "Perl2Exe for Win32 is a 32-bit Windows console application, and requires any 32-bit version of Windows, including 95/98/ME/NT/2000/XP." Note the lack of a Vista cite. Could Vista be your problem?

Re: Weird problem when converting pl file to exe
by marto (Cardinal) on Aug 03, 2007 at 09:23 UTC
    Perhaps you could give us an example of this "weird problem", an explanation of the "preferred output" and how it differs when your script is converted to an exe. Are there any differences in the setup of the machine running Perl and the machine you run the executable on which may be a contributing factor in the differing output? Or dependencies external to your Perl script that exist in one but not the other?

    Update: If nobody here can help you, you may want to try IndigoSTAR support, but I suspect they will also ask you for an example of what is not working the way you expect it to.

    Martin
Re: Weird problem when converting pl file to exe
by Anonymous Monk on Aug 03, 2007 at 09:32 UTC