Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Running Perl Programs without 'installing' Perl

by John M. Dlugosz (Monsignor)
on Oct 28, 2002 at 16:47 UTC ( [id://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?

—John

  • 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 my_program.pl 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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2024-04-23 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found