Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个名为 exp.bat 的 bat 文件,它运行 exp.pl 一个 perl 脚本。当我从命令提示符运行 bat 时,我需要将值传递给 perl scipt。这可能吗?TIA
最小的.pl:
use strict; use warnings; print join "*", @ARGV;
最小的.bat:
@perl exp.pl %*
用法/演示:
exp.bat a "b c" d a*b c*d