是否存在等效的x86 PAUSE指令,该指令位于繁忙的等待循环中以提高性能,特别是在PowerPC上的SMT机器上?
考虑以下愚蠢的Perl程序:
$firstarg = $ARGV[0];
print $firstarg;
$input = <>;
print $input;
Run Code Online (Sandbox Code Playgroud)
我从一个终端运行它,如:
perl myprog.pl sample_argument
Run Code Online (Sandbox Code Playgroud)
并得到此错误:
Can't open sample_argument: No such file or directory at myprog.pl line 5.
Run Code Online (Sandbox Code Playgroud)
任何想法为什么会这样?当它到达<>它是否试图从(不存在的)文件,"sample_argument"或其他东西中读取?为什么?
所以7z.exe在我的$ PATH环境变量中.
PS C:\Users\jimmeh> 7z.exe
Bad numeric constant: 7.
At line:1 char:2
+ 7 <<<< z.exe
+ CategoryInfo : ParserError: (7:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : BadNumericConstant
Run Code Online (Sandbox Code Playgroud)
除了重命名EXE,有没有办法做到这一点,还是Powershell中的一个错误?