in reply to executing a list of programs

You could always cheat and let the shell do it for you: system "$command[0] ; $command[1] ; $command[2]";