Damian Conway writes: : Graham Barr wrote: : : > If a POST is inside a loop, is it executed at the end of each : > iteration or only when the loop exits ? : : Only on final exit. : : > If it is only when the loop exits, will it be possible to designate : > a block to be multiple (eg both POST and NEXT) : : One way to do that would be to define POST and NEXT to return their own : (single, closure) argument. So then you could write: : : NEXT POST { ... }
As long as everyone realizes that that return happens at compile time... This is only slightly less problematic than NEXT $coderef; which in turn is only slightly less problematic than if $condition $coderef; Ick. Larry