Perl in different places on different sites

I have many perl scripts. I will support multiple sites that may not have the same access paths (shebang line).

How can I avoid changing the top line of shebang in each of the perl scripts?

This is all in a unix environment.

Regards, Gordon

+4
source share
1 answer

A common solution is to use the env command:

 #! /usr/bin/env perl 
+11
source

Source: https://habr.com/ru/post/1343995/


All Articles