in reply to Different perl locations on different servers.

You could use env to do it (which will search PATH, so have that set correctly) like #!/usr/bin/env perl. Or another possibility would be to try and find somewhere (maybe /home/mylogin/bin/perl) which you can keep constant across all your platforms and then make that symlink to the correct local version.

Replies are listed 'Best First'.
Re^2: Different perl locations on different servers.
by JakeIII (Novice) on Nov 27, 2007 at 13:08 UTC
    Thanks. Unfortunately, env is not available on all of the systems. Plus, there's no guarantee that it'd get the desired version. Jake