in reply to Re^3: Declare Variable in Loop
in thread Declare Variable in Loop

Thank you, I thought so. Would you just call that a block?

Replies are listed 'Best First'.
Re^5: Declare Variable in Loop
by ikegami (Patriarch) on Mar 26, 2010 at 22:45 UTC

    Yes, or a bare block. I might also call it a scope since it creates one. ("I created a scope for your variables.")

    Furthermore, it is sometimes called "bare loop", since it really is a loop that executes exactly once. redo causes the loop to restart, and next and last exit it. It's only called a bare loop when one of those is used as well.

    Update: lidden pointed out that I grouped next with redo when I should have grouped it with last. Fixed.

Re^5: Declare Variable in Loop
by Anonymous Monk on Mar 26, 2010 at 22:41 UTC
    Because thats the name :)