in reply to portable "#!" line?
When I install any Perl package (CPAN or other), I call it directly with:
What I refer to as 'myperl' is the exact Perl version where I want the package installed. Otherwise, it won't install to the correct directory structure. Obviously you could open the CPAN shell for multiple installs, etc.myperl -MCPAN -e 'install "..."'
But you may be worrying about something that just won't happen. When a user calls your CPAN package, Perl is already running so your shebang is not used. If your package isn't in the correct directory, it will fail at compile or runtime depending on how it's called (use/require/BEGIN).
If you are the sysadmin then you will install it where your clients can get to it!
Good Luck!
"Well done is better than well said." - Benjamin Franklin
|
|---|