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

Replies are listed 'Best First'.
Re^2: How can I control perl binaries
by aaron_baugher (Curate) 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