http://qs321.pair.com?node_id=979654

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

Is there any provision to run perl scripts without installing perl? Please don't suggest to create .exe file for this. Is there any other way to run perl script on my windows system.
  • Comment on Is there any provision to run perl scripts without installing perl?

Replies are listed 'Best First'.
Re: Is there any provision to run perl scripts without installing perl?
by marto (Cardinal) on Jul 03, 2012 at 11:43 UTC

    Other than the advice moritz has already given, you could run perl from a USB device, meaning that it wouldn't have to be installed on the computer, see PortableZIP edition. Since you are for some reason opposed to creating a stand alone exe I think your alternatives are going to be limited.

        Agreed, another possible alternative but since ckj hasn't specified what the scripts in question do, this may not be suitable.

Re: Is there any provision to run perl scripts without installing perl?
by moritz (Cardinal) on Jul 03, 2012 at 11:33 UTC
Re: Is there any provision to run perl scripts without installing perl?
by Ransom (Beadle) on Jul 03, 2012 at 11:39 UTC

    Hey I just met you and this is crazy, but I don't want to install perl, just run it maybe.

    If you want a whole package, install cygwin on windows and perl inside that.

Re: Is there any provision to run perl scripts without installing perl?
by tobyink (Canon) on Jul 03, 2012 at 12:33 UTC

    Yes: buy, borrow or steal a computer that already has Perl installed upon it.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
      steal? uh-oh

        Didn't you know? It's a corollary to the information axiom. Computers want to be free.

Re: Is there any provision to run perl scripts without installing perl?
by Anonymous Monk on Jul 03, 2012 at 14:12 UTC
    Like it or not, the runtime environment of Perl (and all of the libraries that may be directly or indirectly referenced by your code) must be installed on the target computer. Mechanisms for bundling this into a self-contained (exe...) single file do exist. But the fact remains: it must execute. Therefore, it must be executable.

    Remember that systems like Windows install a tremendous number of runtime environment libraries whether you want them there or not, precisely so that scripts and so-forth can run on the computer without further installation-work from you. (Ignoring the obvious "virus and malware" threads, please...)
Re: Is there any provision to run perl scripts without installing perl?
by Anonymous Monk on Jul 03, 2012 at 11:44 UTC

    Is there any provision to run perl scripts without installing perl? Please don't suggest to create .exe file for this. Is there any other way to run perl script on my windows system.

    No, but you knew that already