[EMAIL PROTECTED] wrote:

Hi,
Is there a way to store the output of a system call on unix?

eg. system("date");

use backticks...

$date = `date`;

Don't forget to chomp the $date variable as I guess you just want the date, not 
the newline character with it...

chomp($date);




-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to