in reply to How to run scripts without perl interpreter

An alternate approach if it needs to run on every machine on a network, but you don't want to install to each one is to install to the network and run Perl off of the network install. (You can also add any modules that you want to the network install, and they will be available to everyone.)

For a Windows network all that you have to do is install to a network drive. Then take a Perl script and run pl2bat. That creates a .bat file that will work if Perl is in the path. Go in and edit the .bat file so that its invocation of the Perl interpreter is a fully-qualified path to the location of Perl on the network. (eg \\host\and\the\path\to\Perl\bin\perl.exe)

Those .bat files will now work on any Windows machine on the network, and will be a lot smaller and easier to edit than the other offered solutions.

  • Comment on Re: How to run scripts without perl interpreter

Replies are listed 'Best First'.
Re: Re: How to run scripts without perl interpreter
by flyingmoose (Priest) on Feb 16, 2004 at 19:22 UTC
    If you do this, watch your permissions. Our work setup (not set up by myself) allows any user in the company to install modules through CPAN or ppm. Ok, I consider this a feature (and exploit it often -- though I'm allowed to), but it is a definite sign of a permissions problem -- users could use perl to destroy perl, so to speak...not good. We also use pl2bat -- good stuff!