Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Running Perl Programs without 'installing' Perl

by John M. Dlugosz (Monsignor)
on Oct 28, 2002 at 16:47 UTC ( #208542=perlquestion: print w/replies, xml ) Need Help??

John M. Dlugosz has asked for the wisdom of the Perl Monks concerning the following question:

I had a useful program criticised because someone doesn't want to "install" Perl on the target machine.

Hey, if VB wants to drag around a multi-megabyte DLL, why not Perl programs?

Besides making the files available on the file system, what is really necessary to run perl.exe on a Windows system? For a trivial script, it appears that nothing that's in the registry is actually used, and what it is looking for isn't present. So, I think it comes up with the @INC all by itself based on the exe's location. Is that correct, or is there some other hidden configuration somewhere?

Is there anything else I should know about besides (1) seeing the directory tree and (2) making sure @INC points to it?


  • Comment on Running Perl Programs without 'installing' Perl

Replies are listed 'Best First'.
Re: Running Perl Programs without 'installing' Perl
by dree (Monsignor) on Oct 28, 2002 at 17:10 UTC
    There is a new module that tries to do that: App::Packer from Mattia Barbon the author of wxPerl

    For me it works for non-GUI scripts and for small Tks. But it is only a 0.04 version so it will grow!

    If you will distribute perl56.dll like the VB's runtime dll, you will have the same VB's scenario for Perl.
Re: Running Perl Programs without 'installing' Perl
by fglock (Vicar) on Oct 28, 2002 at 16:51 UTC

    That's all you need. I run perl on a share (w:\bin\perl) and it works ok as:

    w:\bin\perl options

    You might set up an "association" to the ".pl" extension, but only if you want to.

Re: Running Perl Programs without 'installing' Perl
by iburrell (Chaplain) on Oct 28, 2002 at 17:49 UTC

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://208542]
Approved by Mr. Muskrat
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2022-06-26 09:06 GMT
Find Nodes?
    Voting Booth?
    My most frequent journeys are powered by:

    Results (84 votes). Check out past polls.