开发者

perl in different locations on different sites

开发者 https://www.devze.com 2023-02-17 10:36 出处:网络
I have a lot of perl scripts. I will b开发者_如何转开发e supporting multiple sites which might not have the same perl paths (shebang line).

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

精彩评论

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