in reply to Re: Value in the range struggling (once more)
in thread Value in the range struggling (once more)

With 1,000 rows in each file, that's 1,000,000 passes through the inner loop.

Actually, the inner loop will only execute once because after the filehandle reaches end-of-file it will always return undef.

  • Comment on Re^2: Value in the range struggling (once more)

Replies are listed 'Best First'.
Re^3: Value in the range struggling (once more)
by kcott (Archbishop) on Mar 16, 2012 at 12:30 UTC

    ++jwkrahn - most astute :-)

    poegi,

    I didn't look deeply at the mechanics of your code. I made an incorrect assumption with respect to my calculations. Nonetheless, I'm sure you grasp the general principle that nested loops can increase the number of operations exponentially. I'll update my post.

    -- Ken