DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Tools that let you package Perl programs into standalone executable  (Read 6,895 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Quote
This tutorial outlines the steps you need to take in order to compile your perl scripts into standalone executables. There are a few ways to do this, including the commerical Perl2Exe, and packages such as PerlBin and App::Packer, and a tool called perlcc. I have had the most luck using a free perl module called PAR, which packs perl code into a single .exe file, including all DLLs and other dependencies, so that is what I will discuss here.



from dzone.com

Gothi[c]

  • DC Server Admin
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 873
    • Gathering Badge
    • Coding Snacks
Very interesting. Is there any speed difference between a compiled exe and running the script over the perl exe? Is it really compiled? Or is it just script+interpreter in an exe?

f0dder

  • [Well, THAT escalated quickly!]
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 9,153
    • Participated in NANY Challenge Once
Quote from: Gothi[c
link=topic=4307.msg30590#msg30590 date=1152636120]
Very interesting. Is there any speed difference between a compiled exe and running the script over the perl exe? Is it really compiled? Or is it just script+interpreter in an exe?
My guess is script+interpreter...

But perhaps with Perl6+Parrot, "real" compilation might be possible?

- carpe noctem

Original address: https://www.donationcoder.com/forum/index.php?topic=4307.0