Leser: 11
1
2
3
foreach $name (@names) {
exec("./skript.pl -d $name") or print STDERR "couldn't exec skript.pl: $!";
}
QuoteThe exec function executes a system command and never returns-- use system instead of exec if you want it to return. ...
1 2
@args = ("command", "arg1", "arg2"); system(@args) == 0 or die "system @args failed: $?";