开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜