in reply to perl - loop

As others have said, please format your code. Also, when I have situations like this (looping and processing), I always find it easier to phase my coding:

If you do that, you may find the road less bumpy and not littered with X-Y problems.

-derby

Replies are listed 'Best First'.
Re^2: perl - loop
by apl (Monsignor) on Jul 17, 2009 at 13:08 UTC
    Your suggestions have the added benefits that you get to unit-test basic functionality as well as structuring that lower-level functionality as a set of subs.