I recently looked at the CPAN module that comes with the script installed, which made me think. What is the recommended way to include a script in a package that should be included in a public CPAN, and if there is any other recommendation for packages to be released on the internal CPAN server?
The script starts as follows:
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0;
Two questions
Do I understand correctly that the eval part is not needed? This will be implemented by the CPAN client during installation, and it will be different when installing on Windows.
What is the recommended sh-bang line? Will it
instead of the above?
source
share