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

Hi, I'm thinking about ease of distribution of perl + scripts, and I'm wondering if there's a way to integrate/embed .pm's directly into the Perl interpreter (with a re-compile), and access them as normal. I can't find any resources on this, so I'm assuming the answer is "no", but I thought I'd check. Thanks.
  • Comment on integrating .pm's into perl interpreter

Replies are listed 'Best First'.
Re: integrating .pm's into perl interpreter
by chromatic (Archbishop) on Oct 24, 2002 at 20:09 UTC

    Autrijus Tang has been working on a module called PAR that makes distributing files easier. It sounds like it may do the trick.

Re: integrating .pm's into perl interpreter
by PodMaster (Abbot) on Oct 25, 2002 at 02:33 UTC
    It is possible.

    I'm not suprised your couldn't find any info on this, as it is a very bizzare thing to do.

    Soon to be released on CPAN, App::Packer, does something like this, but for purposes of distributing perl programs as binary executables.

    ____________________________________________________
    ** The Third rule of perl club is a statement of fact: pod is sexy.