malongshuai / malongshuai.github.io

2 stars 0 forks source link

Perl和OS交互(一):system、exec和反引号 | 骏马金龙 #201

Open malongshuai opened 3 years ago

malongshuai commented 3 years ago

https://www.junmajinlong.com/perl/perl_system_exec/

Perl和OS交互(一):system、exec和反引号调用操作系统命令:system函数system函数可以直接让perl调用操作系统中的命令并执行。 system入门示例例如: 12345#!/usr/bin/perlsystem 'date +"%F %T"';system 'echo hello world'