perl 开关“-E”和“-e”有什么不同?在这个例子中,它们的工作方式完全相同——在切换后执行命令:
$ perl -e 'print "$_\n" foreach 1..2'
1
2
$ perl -E 'print "$_\n" foreach 1..2'
1
2
最佳答案
这在 perldoc perlrun
中有解释:
-E commandline
behaves just like -e, except that it implicitly enables all optional features (in the main compilation unit). See feature.
“查看功能”。引用
feature
的文档pragma,您可以通过键入 perldoc feature
来阅读。 .
关于perl - perl 中大写 "-E"开关和小写 "-e"有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19354198/