# .pl -> .exe not so obvious ...

#### Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

•  Subject
• Author
• Posted on
Hi,
I've been trying to compile my perl script into an executable for
windows, but it doesn't work. I tried perlcc, PerlBin 0.02 and Tinyperl
2.0b (not updated since 01-05-03), and none is working. Tinyperl can
compile it, but when I launch myscript.exe, it hangs and/or takes 100%
cpu. Of course, I've tested my script by "c:\perl myscript.pl" and it
works ...
Is there any other _free_ programs to compile a pl script in an exe ? I
can't use Perl2exe or PerlApp from ActiveState as they're not free :(

Thank you for any help or clue ;)

## Re: .pl -> .exe not so obvious ...

> Hi,
> I've been trying to compile my perl script into an executable for
> windows, but it doesn't work. I tried perlcc, PerlBin 0.02 and Tinyperl
> 2.0b (not updated since 01-05-03), and none is working. Tinyperl can
> compile it, but when I launch myscript.exe, it hangs and/or takes 100%
> cpu. Of course, I've tested my script by "c:\perl myscript.pl" and it
> works ...
> Is there any other _free_ programs to compile a pl script in an exe ? I
> can't use Perl2exe or PerlApp from ActiveState as they're not free :(

Use PAR (http://par.perl.org /) - it's very similar to Perl2EXE and PerlAPP,
but it's both free and Free.  Lots of other good things with PAR as well.

I'm using it to bundle a fairly complex Perl/Tk app, and it works great.

## Re: .pl -> .exe not so obvious ...

TBM wrote:

> Hi,
> I've been trying to compile my perl script into an executable for
> windows, but it doesn't work. I tried perlcc, PerlBin 0.02 and Tinyperl
> 2.0b (not updated since 01-05-03), and none is working. Tinyperl can
> compile it, but when I launch myscript.exe, it hangs and/or takes 100%
> cpu. Of course, I've tested my script by "c:\perl myscript.pl" and it
> works ...
> Is there any other _free_ programs to compile a pl script in an exe ? I
> can't use Perl2exe or PerlApp from ActiveState as they're not free :(
>
> Thank you for any help or clue ;)

http://par.perl.org

or get the PAR module from CPAN

Thomas

--
open STDIN,"<&DATA";\$=+=14;\$%=50;while(\$_=(seek( #J~.> a>n~>>e~.......>r.
STDIN,\$:*\$=+\$,+\$%,0),getc)){/\./&&last;/\w| /&&( #.u.t.^..oP..r.>h>a~.e..
print,\$_=\$~);/~/&&++\$:;/\^/&&--\$:;/>/&&++\$,;/</  #.>s^~h<t< ..~. ...c.^..
&&--\$,;\$:%=4;\$,%=23;\$~=\$_;++\$i==1?++\$,:_;}__END__#....>>e>r^..>l^...>k^..

## Re: .pl -> .exe not so obvious ...

Thomas Kratz wrote:

> TBM wrote:
>
>> Hi,
>> I've been trying to compile my perl script into an executable for
>> windows, but it doesn't work. I tried perlcc, PerlBin 0.02 and
>> Tinyperl 2.0b (not updated since 01-05-03), and none is working.
>> Tinyperl can compile it, but when I launch myscript.exe, it hangs
>> and/or takes 100% cpu. Of course, I've tested my script by "c:\perl
>> myscript.pl" and it works ...
>> Is there any other _free_ programs to compile a pl script in an exe ?
>> I can't use Perl2exe or PerlApp from ActiveState as they're not free :(
>>
>> Thank you for any help or clue ;)
>
>
> http://par.perl.org
>
> or get the PAR module from CPAN
>
> Thomas
>

Thank you for this new clue ! :)

## Re: .pl -> .exe not so obvious ...

Thomas Kratz wrote:

> TBM wrote:
>
>> Hi,
>> I've been trying to compile my perl script into an executable for
>> windows, but it doesn't work. I tried perlcc, PerlBin 0.02 and
>> Tinyperl 2.0b (not updated since 01-05-03), and none is working.
>> Tinyperl can compile it, but when I launch myscript.exe, it hangs
>> and/or takes 100% cpu. Of course, I've tested my script by "c:\perl
>> myscript.pl" and it works ...
>> Is there any other _free_ programs to compile a pl script in an exe ?
>> I can't use Perl2exe or PerlApp from ActiveState as they're not free :(
>>
>> Thank you for any help or clue ;)
>
>
> http://par.perl.org
>
> or get the PAR module from CPAN
>
> Thomas
>

Thank you for this new clue !  I'll try it ... :)

## Re: .pl -> .exe not so obvious ...

PAR is just so great, it worked perfectly and easily. Thank you for the