Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: How can I control perl binaries

by Anonymous Monk
on Jun 23, 2012 at 07:30 UTC ( #977947=note: print w/ replies, xml ) Need Help??


in reply to How can I control perl binaries

Edit ~/.bashrc and append /your/favorite/perl/path to $PATH , none of this wrapper shell scripting nonsense


Comment on Re: How can I control perl binaries
Re^2: How can I control perl binaries
by aaron_baugher (Chaplain) on Jun 23, 2012 at 16:52 UTC

    Even better, prepend the path to your favorite perl to $PATH, so it will be found before any others in your path.

    sh$ PATH=/bin:/usr/bin:/home/me/bin sh$ which perl /usr/bin/perl sh$ PATH=/home/me/bin:/bin:/usr/bin sh$ which perl /home/me/bin/perl

    Aaron B.
    Available for small or large Perl jobs; see my home node.

      Good point on using -e in a #! line. Guess I got hung up on that. This wrapper script is put inplace by our IT department so the correct binary will be run based on the users machine. And after getting input from this group, I think we are OK. the -w can be put into the actual perl script with "use strict". All of the other "real" command line options seem to pass thru the wrapper correctly when they are actually present on a command line from STD_IN. So I did learn a little more of how the #! line works. Thanks for the feedback. Dan

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://977947]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2013-05-23 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (486 votes), past polls