in reply to Re: Efficiency on Perl Code!
in thread Efficiency on Perl Code!

I don't understand this part "foreach my $choice (qw(a b)){" , I am running this code and its giving me the double lines in the for loop, "for(my $ix= 0; $ix < 6; $ix++){ " it is printing 12 lines instead of 6.

Replies are listed 'Best First'.
Re^3: Efficiency on Perl Code!
by throop (Chaplain) on Oct 05, 2007 at 20:10 UTC
    I've updated my code for $ix to start at 1, not 0. You had 10 variables in your opening block – dbh (1 thru 5) and dbh_b (1 thru 5). This loop generated both sets.

    throop