Our current method to run perl, is a wrapper script which determines what machine you are on, and finaly calls the correct PERL executable. The script begins with #!/usr/bin/sh. Now my personal perl script begins with: #!/usr/bin/env /bin/perl_wrapper -w this problem is a Unix problem where the -w is interpreted as a file name, and I get a -w file not found error. If I remove the -w, the nested scripts work fine. Is there another method to have the first line of my personal PERL script call a wrapper (for binary selection) and still pass perl options. Or a bteer way to select the right binary? Users may want specific perl versions. Thanks, Dan

#!/usr/bin/env perl_wrap -w #Above line fails with -w not found #!/usr/bin/env perl_wrap #Above line works fine

In reply to How can I control perl binaries by Dan.Pinvidic

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.