What should I use for a Perl script's shebang line?

后端 未结 8 1855
北荒
北荒 2020-12-02 22:19

Which of these is better or faster to use as the shebang line for a Perl script?

#! perl

#! perl.exe

#! fullpath/perl(/perl.exe)

#! partialpath/perl(/perl         


        
8条回答
  •  孤城傲影
    2020-12-02 22:41

    And, when using "#! perl", when it works on a particular system, what is the print() for showing the full path to perl.exe, that could be included into the Shebang Line ?

    Well, if you're using the print statement you are already executing perl code, so...

提交回复
热议问题