The backticks work just as they would in a shell script. You're using them
the wrong way in your example, anyways.
my $output = `command param`;
my $rc = system('command', 'param'
From: Rajini Naidu <[email protected]>
To: [email protected]
Date: 07/14/2009 11:41 AM
Subject: perl query
Hi,
I have the below commands in the script.
`$swlist -l bundle -a revision -a architecture -s $t | $grep $n >>
$log_our_depot`;
`$swlist -l bundle -a revision -a architecture -s $t | $grep $n >>
$log_ourdepot_comp`;
Here I am outputting the same command line output to different logfile.
Is there a way in perl where I can output in one pass by storing it in a
variable.
-Rajini
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/