Using perl's `system`

前端 未结 4 2177
逝去的感伤
逝去的感伤 2020-11-27 08:10

I would like to run some command (e.g. command) using perl\'s system(). Suppose command is run from the shell like this:



        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 09:03

    my @args = ( "command", "--arg1=arg1", "--arg2=arg2", "-arg3", "-arg4" );
    system(@args);
    

提交回复
热议问题