in reply to Using output from system() call

Use backticks. For instance,

my $date = `date`; print $date;
HTH