note
vkon
I had in mind main perl executable but linked in such a way that it runs foo.pl seamlessly (not from any application, we were talking of a way to create EXEs out from perl scripts from the very start.)
<p>
suppose you have script <code>foo.pl</code>, which uses <code>Bar::</code> and <code>Fluffy::</code> XS extensions.
<br>($^O equals to 'MSWin32' in my explanations)
<p>You want to create <code>foo.exe</code>, much like PAR but with statical linking and w/o temporary unzips.
<p>With an approach kept by me in mind (and by Ilya Zakharevich in mentioned link) you will result in:
<ul>
<li>perl58s.lib <- static library, which is not against perl58.dll, but rather all the code inside it
<li>Bar.lib, Fluffy.lib <- same for extensions
<li>foo.zip <- to contain all text files with Perl scripts: foo.pl, and required perl core library
<li>perlmain.c from perl source distribution which contains RunPerl call, and link it against all mentioned <code>lib</code>s
<li>concatenate resulting EXE with foo.zip like in Ilya's message
</ul>
The resulting perl executable runs your foo.pl and w/o temporaries.
639530
639680