How do I ignore the Perl shebang on Windows with Apache 2?

前端 未结 8 772
南方客
南方客 2020-11-29 08:31

I have set up a local Perl web environment on my Windows machine. The application I\'m working on is originally from a Linux server, and so the shebang for source .pl<

8条回答
  •  盖世英雄少女心
    2020-11-29 09:13

    There is no portable shebang line. Even on the same platform and architecture, someone might have installed perl is a different location.

    The trick is to not install modules and scripts by hand. When you package everything as distributions and use the module toolchain, the shebang lines are modified automatically to point to the perl you used to install everything. You shouldn't have to think about these details. :)

提交回复
热议问题