RE: Inefficient code?

2007-02-27 Thread Johnson, Reginald \(GTI\)
-Original Message- From: John W. Krahn [mailto:[EMAIL PROTECTED] Sent: Sunday, February 18, 2007 4:15 PM To: Perl Beginners Subject: Re: Inefficient code? Johnson, Reginald (GTI) wrote: My code is comparing the variables node and db in one input file to bkup_node and bkup_db

Re: Inefficient code?

2007-02-27 Thread John W. Krahn
Johnson, Reginald (GTI) wrote: From: John W. Krahn [mailto:[EMAIL PROTECTED] Johnson, Reginald (GTI) wrote: foreach $bkline (@bkupArray) { my ($bkup_node_ora,$bkup_db,$bk_blank,$id,$type,$cap,$start,$filler,$filler2,$filler3,$filler4,$bk_end,$rest)=

Re: Inefficient code?

2007-02-18 Thread John W. Krahn
Johnson, Reginald (GTI) wrote: My code is comparing the variables node and db in one input file to bkup_node and bkup_db in the other input file. If they match then a line is written to the output file. While I am getting the desired output I don't think I am doing this in the most efficient

Re: Inefficient code?

2007-02-15 Thread Tom Phoenix
On 2/15/07, Johnson, Reginald (GTI) [EMAIL PROTECTED] wrote: My code is comparing the variables node and db in one input file to bkup_node and bkup_db in the other input file. Really? if (($node =~ /$bkup_node/) ($db =~ /$bkup_db/)) { It looks as if you're using