Re: PRE / POST in loops

2003-01-03 Thread Andy Wardley
Luke Palmer wrote: > The difference between POST and NEXT is simply that POST fails to > refrain from executing after the final iteration, while NEXT does not. Or in other words: The difference between POST and NEXT is that POST executes after the final iteration, while NEXT does not. NEXT happ

Re: PRE / POST in loops

2003-01-02 Thread Luke Palmer
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm > Date: Thu, 2 Jan 2003 19:21:04 +0100 > Cc: [EMAIL PROTECTED] > From: Arthur Bergman <[EMAIL PROTECTED]> > X-SMTPD: qpsmtpd/0.20, http://develooper.com/code/qpsmtpd/ > > Hello, > > I just got a question from Lee Pumphret regarding Hook::Sco

PRE / POST in loops

2003-01-02 Thread Arthur Bergman
Hello, I just got a question from Lee Pumphret regarding Hook::Scope POST in loops. Currently it treats every iteration as a scope entry and scope exit so. for(1..3) { POST { print 2 }; print 1; } will print "121212", Since perl6 seems to have a NEXT {} block for doing this, how is POST an