我正在成批执行我的perl文件。我将perl文件的所有名称粘贴到一个批处理文件中并执行它。我给出了该文件的一个小演示。
批处理文件/10BT_run1.Amset包含:
Perl ../tools/test_driver_multi_aid_sequential.pl e2_h/l2_mode/set_bwprf #this is line 4 of the batch file我收到的错误信息如下
Bareword found where operator expected at ./10BT_run1.Amset line 4, near "/tools /test_driver_multi_aid_sequential"
(Missing operator before test_driver_multi_aid_sequential?)
Bareword found where operator expected at ./10BT_run1.Amset line 4, near "/l2_mode/set_bwprf"
(Missing operator before et_bwprf?)发布于 2012-03-06 16:22:25
您正在以某种方式使用perl而不是cmd执行批处理文件(./10BT_run1.Amset)。
发布于 2012-03-06 16:13:05
您可以将perl文件作为perl解释器的参数运行
perl "../tools/test_driver_multi_aid_sequential.pl e2_h/l2_mode/set_bwprf" 如果您打算在参数之间使用“将它们分隔为转义序列,如\”
它将避免您提到的错误
https://stackoverflow.com/questions/9578599
复制相似问题