in reply to Executing a program with in a perl script, and capturing the data in two ways

Both lhoward's and Shendal's answers are good examples of what I think is a more general Way To Think About The Problem: If you can capture the data into a variable, just print the variable, and then the results are on the screen as well.

Another example (backticks, as Shendal mentioned):

my $answer = `/usr/local/bin/arbitrary_script_that_prints_something`; print $answer;
If you're writing short scripts or one-liners, you might man perlrun and check out the -e, -n, and -p options. In short scripts these can remove 90% of the skeleton code for you.

Alan