私のperlファイルをバッチで実行しています。私はバッチファイル内のperlファイルのすべての名前を貼り付けて実行しています。私はファイルの小さなデモを提供しています。PerlファイルにBarewordエラーが表示されています
バッチファイル/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
私はあなたが通訳
perl "../tools/test_driver_multi_aid_sequential.pl e2_h/l2_mode/set_bwprf"
をperlの引数としてperlのファイルを実行することができます
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?)
入力全体を二重引用符 '" "' ' –
または一重引用符で囲んでみてください。一重引用符は、ファイルパスで'/'を無視するのに役立ちます。 –
行の先頭に一重引用符を追加する。つまり、 'Perl ../tools/test_driver_multi_aid_sequential.pl e2_h/l2_mode/set_bwprf'または引数のみ? – Nitesh