perl in different locations on different sites
I have a lot of perl scripts. I will b开发者_如何转开发e supporting multiple sites which might not have the same perl paths (shebang line).
How can I avoid changing the top shebang line in each of the perl scripts?
This is all in the unix environment.
regards, Gordon
The usual solution is to use the env
command:
#! /usr/bin/env perl
精彩评论