相关疑难解决方法(0)

在perl中使用-e和-s开关

我开始学习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

6
推荐指数
1
解决办法
617
查看次数

标签 统计

perl ×1