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.


In reply to Re: How to run scripts without perl interpreter by tilly
in thread How to run scripts without perl interpreter by BetZy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.