I don't usually put a script in a package, so I'm not sure how the installer handles this. Typically, one would see the following in a perl script:
But suppose the perl executable is located somewhere else? How does one tell the installer (cpanm, CPAN, etc.) to change the #! path in the script? (I am presuming that script in a distro's bin dir will be installed in an appropriate location in the installing user's PATH.)
It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.