Perl seems to have broken: “=: not found” and “package: not found”

后端 未结 1 1568
感动是毒
感动是毒 2021-01-29 05:44

I have a perl script; on my personal machine, running the exact same version of perl (5.10.1), it runs perfectly fine. However, on the server machine, it not only doesn\'t run,

1条回答
  •  有刺的猬
    2021-01-29 05:57

    The issue is that bash is trying to run/compile/interpret the script, rather than perl.

    #! /usr/bin/perl
    

    should be at the very top of your file, don't have stuff above it.

    0 讨论(0)
提交回复
热议问题