in reply to Re^3: Loop, but print once.
in thread Loop, but print once.

You're right. Thanks.

I feel honored to have my submission reviewed so thoroughly.

The one change I fail to see the motive for is the decision not to initialize @prev_cells when it is declared, but instead to test for its existence on every pass through the loop.

Replies are listed 'Best First'.
Re^5: Loop, but print once.
by ikegami (Patriarch) on Mar 07, 2008 at 06:47 UTC
    Mostly 'cause I didn't notice you initialized @prev_cells until after I already had the if in place. :) I have no problem with how you did that. (Mind you, $SPACE works just as well as the empty string.)