> I see this all the time.  What would fit the bill is to have something
   > like a C<continue> block for subs; they get called during the same
   > phase as destructors of objects going out of scope.
   > 
   >     sub readit {
   >         open F, "< $f" ...
   >         scalar(<F>)
   >     }
   >     continue {
   >         close F;
   >     }


RFC 271 handles this. Your example would be:

        sub readit {
            open F, "< $f" ...
            scalar(<F>)
        }
        post readit {
            close F;
        }

Damian

Reply via email to