perl的执行,其中输入来自<(CMD2输入)命令
问题描述:
我有我的Linux 64位运行一个Perl脚本,它看起来像这样:perl的执行,其中输入来自<(CMD2输入)命令
my $ret = `/my/cmd option1 option2 <(/my/cmd2 input)`
这工作在bash,但是当我尝试执行相同的命令作为Perl脚本中的反引号,它会抱怨:
sh: -c: line 0: syntax error near unexpected token `('
任何想法?
我知道你有一个解决方案了,但请你会运行'perl -MConfig -E'say $ Config {sh}''并报告输出结果是什么? – Borodin