in reply to Perl 6 and exe

Speaking of perl6, I was impressed on how easy it is with PUGS to create standalone executable, at least for one-liners.

Speaking of perl5, your link nifty trick is interesting also, and it is quite doable nowadays, but with minor tweaks to perl source tree.

I have my home-grown perl5 executable system, which do on-the-fly unpacks (w/o temporaries, unlike PAR approach), and it is half-way done to a single-file executable.

Replies are listed 'Best First'.
Re^2: Perl 6 and exe
by ikegami (Patriarch) on Sep 18, 2007 at 14:46 UTC

    @INC supports code refs to specialized handlers, so no need to tweak the Perl source.

      there is a need to tweak the Perl source, if you really want perl executable with any extension to be linked statically into the main executable.

      I was able to statically link into perl58.dll Tcl::Tk and some required for me modules. But you need some kind of linking set and some developed approach if you're going to gather some (unknown) extensions into the main exe.

      PS.(keep in mind, this is not PAR approach, where huge ZIP is unpacked into %TEMP%)

        if you really want perl executable with any extension to be linked statically into the main executable

        I don't understand. There is no perl executable if Perl is statically linked into your executable.