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 <rajinid...@gmail.com>                               
          
                                                                                
          
  To:         beginners@perl.org                                                
          
                                                                                
          
  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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to