if (no runtime param) { @list = (list,of,parameters); foreach (@list) { system("this program with parameter 2>&1 >own.log &"); } } process(runtime param); sub process { ... }