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
On Thu, 2006-07-27 at 22:47 +0800, Sayed, Irfan (Irfan) wrote:
> Hi,
>
> I am executing following code. i need to send the output of
> system($cmd); command to the file . how do i do that
>
> plz help
This question has already been answered twice this morning. Please watch
for responses to th
why do you keep on asking the same question?
On Jul 27, 2006, at 9:47 AM, Sayed, Irfan ((Irfan)) wrote:
Hi,
I am executing following code. i need to send the output of
system($cmd); command to the file . how do i do that
plz help
Regards
Irfan.
#/usr/atria/bin/Perl -w
us
Hi,
I am executing following code. i need to send the output of
system($cmd); command to the file . how do i do that
plz help
Regards
Irfan.
#/usr/atria/bin/Perl -w
use strict;
use warnings;
my $CT = "/usr/atria/bin/cleartool";
my @vob_list = `$CT lsvob -s`;
my $fname = "/t