my ($cmd, @args) = ("/pfad/zu/programm", "--arg1", $anzahl, "--arg2", ...); system($cmd, @args) == 0 or die "Could not execute $cmd: $?";