Bruno Haible wrote:
<https://perlbrew.pl/Dealing-with-shebangs.html> suggests something like the following instead. This would avoid having separate shell scripts and .pl files, which would be a plus:- Add a shell script useless-if-before-free that merely does this:#!/bin/sh exec perl "$0".pl "$@"
#!/bin/sh
#! −*−perl−*−
eval 'exec perl −x −wS $0 ${1+"$@"}'
if 0;
