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
and CATCH supposed to
be used in conjunction with loop scopes.
Arthur
- Re: PRE / POST in loops Arthur Bergman
- Re: PRE / POST in loops Luke Palmer
- Re: PRE / POST in loops Andy Wardley
- "my int( 1..31 ) $var" ? Murat Ünalan
- Re: "my int( 1..31 ) $var" ? Smylers
- Re: "my int( 1..31 ) $var" ? Chris Dutton
- Re: "my int( 1..31 ) $var" ? Chris Dutton
- Re: "my int( 1..31 ) $var" ... Luke Palmer
- Re: "my int( 1..31 ) $var" ? Smylers
- Re: "my int( 1..31 ) $var" ? Mr. Nobody
- Re: "my int( 1..31 ) $var" ? David Storrs