我开始学习Perl.我试过了
perl -e 'print "The value of \$x=$x\n";'
Run Code Online (Sandbox Code Playgroud)
得到:
The value of $x=
Run Code Online (Sandbox Code Playgroud)
然而:
perl -s -x=10 -e 'print "The value of \$x=$x\n";'
Run Code Online (Sandbox Code Playgroud)
给
No Perl script found in input
Run Code Online (Sandbox Code Playgroud)
我想将-s
开关与-e
开关一起使用..为什么不能正常工作?
perl ×1