You can capture the output from an executable file by using backticks ``. Then, you can do whatever you want to the output: add a prefix, a suffix, or change it completely with regular expressions. In the following code, I'm capturing the output of echo and prefixing the date. Replace echo with the binary of your choice.
use strict;
my $system_call = `echo hello world`;
my $output = scalar(localtime())." $system_call";
print STDOUT $output,"\n";
# output
# Tue May 31 09:04:22 2005 hello world
If this isn't what you are looking for, please be more explicit in your posts.
lupey
| [reply] [d/l] [select] |