Unless you want to communicate via files (not adviced), usually pipes are used for this purpose. The less painful method, however, is to use the backticks (`) on a command, that transparently create an anonymous pipe and return the output to your script.
my $output = `path/program_name`;
qx// (Quoted eXecution) is an alternative to the backtics