perl中subroutine和system的区别

2025-05-05 11:03:32
推荐回答(1个)
回答1:

system执行命令并把结果输出,而`执行命令并把结果返回,语句: system("cmd"); 相当于: print `cmd`;