in reply to How to run a legacy perl version smoothly from perlbrew & Carton
Secondly, there are about 200 CGI scripts mostly in Perl, and each with a #!/usr/bin/perl shebang line
find ... -name '*.cgi' -type f \ -exec perl -pe's{^#!.*?/perl}{#!/.../perl} if $. == 1' -i~ {} \;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to run a legacy perl version smoothly from perlbrew & Carton
by Fletch (Bishop) on Dec 17, 2020 at 13:52 UTC | |
by ikegami (Patriarch) on Dec 18, 2020 at 11:38 UTC | |
by Fletch (Bishop) on Dec 18, 2020 at 13:47 UTC | |
by ikegami (Patriarch) on Dec 19, 2020 at 00:58 UTC |