Help for this page

Select Code to Download


  1. or download this
    @args = ("command", "arg1", "arg2");
    system(@args) == 0 or die "system @args failed: $?";
    
  2. or download this
    @args = ("command", "arg1", "arg2");
    exec { $args[0] } @args or print STDERR "couldn't exec $args[0]: $!";