JakeIII has asked for the wisdom of the Perl Monks concerning the following question:
Is there a better way to deal with this? Perhaps within perl rather than relying on /bin/sh ?#! /bin/sh if [ `uname -n` = "-- computer name --" ] then eval ' exec /sw/perl/5.6.1/WS/7/bin/perl -x $0 "$@" ' else eval ' exec /usr/bin/perl -x $0 "$@" ' fi #! perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Different perl locations on different servers.
by Fletch (Bishop) on Nov 02, 2007 at 13:56 UTC | |
by JakeIII (Novice) on Nov 27, 2007 at 13:08 UTC | |
|
Re: Different perl locations on different servers.
by KurtSchwind (Chaplain) on Nov 02, 2007 at 14:27 UTC | |
by JakeIII (Novice) on Nov 27, 2007 at 13:12 UTC | |
|
Re: Different perl locations on different servers.
by tuxz0r (Pilgrim) on Nov 02, 2007 at 16:40 UTC |