use strict; use warnings; my $externalExe="C:/path/to/myprog.exe"; print "Starting external program...\n"; print for qx|$externalExe 2>&1|; # Executes the program, and prints it's output print "Program $externalExe run completed.\n";