Why doesn't this Perl one-liner work on Windows?

后端 未结 3 1353
抹茶落季
抹茶落季 2020-12-07 02:56

Trying to run a simple Perl script in a command window and am getting error:

string terminator "\'" anywhere before EOF at -e line 1

3条回答
  •  無奈伤痛
    2020-12-07 03:37

    Try: perl -e " print 'Hello..'; " This works in the Windows CMD.EXE console where quoting is not POSIX standardized.

提交回复
热议问题