my @args = ('/path/to/prn_to_file.pl', $param1, '/path/to/results/output.txt'); system(@args) == 0 or die "Blah blah...:$!\n";