Simplest way:
The variable $prog_output will contain the text output of the executable (assuming it is a console app, and uses STDOUT for text output...)
If you are needing the output of a VISUAL program (windowed) then you may want to check into ASP.net... have yet to see a way to do this in PERL...