Try backticks instead of the system() call to capture the outputh.

E.g.  my @results = `$cmd`;




-----Original Message-----
From: Sayed, Irfan (Irfan) [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 27, 2006 7:48 AM
To: beginners@perl.org
Subject: File opeartions help

Hi,
 
I am executing following code. i need to send the output of
system($cmd); command to the file . how do i do that 
 
<snip>



--
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