Hi Monks, I am using some perl scripts here at work in conjunction with another site. The users at the other site have written the scripts and invoke them with the top line of: #!/usr/local/bin/perl. However, at our site, we use perl from /usr/bin. We want to come up with a consistent way of using the same scripts with no modifications what so ever. Is there a way to do this? I know you can invoke the script by putting the version you want in front of it, but this requires modifications, and not very helpful, as in the following case: /usr/bin/perl myscript.pl . Is there some sort of environment variable or something we can use to say where our perl executable is located? Thanks for the help! Randy

In reply to Perl executable location differences by flounder

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.