my @output = `./myexecutable.out ...`; chomp @output; # if you don't want the newlines at the end