sorry I didn't get anything can u please give some codeline. regards irfan.
-----Original Message----- From: Wagner, David --- Senior Programmer Analyst --- WGO [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 10:39 PM To: Sayed, Irfan (Irfan); Perl Beginners Subject: RE: Rel help in array Sayed, Irfan (Irfan) wrote: > Hi, > > I have one array called as @array1 which has some data > > I have another @array2 which also has some data. > > now for each element / value of both these arrays i need to a run a > specific command at a time , not one by one. means that for every > element of both these arrays i have to run specific command , once > that command is executed properly then again for second element / > value of both the array i need to execute same command and so on . > > suppose that command is `ct lsreplica` . > > and the output of this command i need to save in another array. > > How do i achieve this. > > Please let me know. > > Regards > Irfan. use backticks into an array and save into a file or place into total array. With backticks you would get all the output generated and then can parse that if necessary: my @myoutput = `ct lsreplica $myvar`; Now @myoutput has the output of the backtick going against what was in $myvar. A start. Wags ;) WGO: x2224 ********************************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. ********************************************************************** -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>