Nicholas Clark wrote:

> on the other hand, I'll argue the other side that
> 
> {
>   my $flag
>   open FOO, "<bar" ? $flag=1 : die "aargh $!";
>   ...
> }
> post {
>   close FOO if $flag;
> }
> 
> is clearer because the tidy up doesn't visually get in the way of the flow
> of what you're doing, and you can see what $flag is meant to be

How is 

        $flag=1

clearer than

        POST{close FOO;&dropLock}

in this example?  I don't think the consistency issue is strong enough.
We are also being inconsistent by not suggesting a PRE which would be
analogous to BEGIN and would run at the beginning of a sub even though
it is defined halfway into it. For interior blocks, a label would
be used to say which block we're firing after.  Or we always use sub
blocks and that's that.

Reply via email to