Featured post
windows - What is the recommended way to package perl scripts for CPAN (and CorporatePAN)? -
recently looked @ module on cpan comes script installed made me wonder. recommended way include script in package should end on public cpan , if there different recommendation packages released on in-house cpan server?
the script starts this:
#!/usr/bin/perl eval 'exec /usr/bin/perl -s $0 ${1+"$@"}' if 0; # not running under shell two questions
do understand correctly eval part unnecessary? embedded cpan client during installation , different when installing on windows.
what recommended sh-bang line?
#!/usr/bin/env perl instead of above?
just use
#!/usr/bin/perl (or, optionally, whatever path perl on development machine.)
when module::build or makemaker installs script, change #! line match perl installing module. add "eval exec" lines, except under windows, create .bat file instead. (the cpan client has nothing this.)
if use
#!/usr/bin/env perl then installers won't realize that's perl script, , not modify #! line.
- Get link
- X
- Other Apps
Comments
Post a Comment