On Tue, 6 Feb 2001 04:36:36 +1100 (EST), Damian Conway wrote: >RFC 271 handles this. Your example would be: > > sub readit { > open F, "< $f" ... > scalar(<F>) > } > post readit { > close F; > } The connection between these two things is not strikingly obvious. I'd like it better, if you put the post thing inside the sub readit's contents. It can even be anonymous. sub readit { open F, "< $f" ... scalar(<F>) POST { close F; } } The place where it would be put, would be irrelevant. sub readit { POST { close F; } open F, "< $f" ... scalar(<F>) } -- Bart.
- Re: POST blocks (like END, but... Nicholas Clark
- Re: POST blocks (like END, but... David L. Nicol
- Re: POST blocks (like END, but... Nicholas Clark
- Re: POST blocks (like END, but... Bart Lateur
- Re: POST blocks (like END, but... John Porter
- Re: POST blocks (like END, but... John Porter
- Re: assign to magic name-of-fu... Glenn Linderman
- Re: assign to magic name-of-functi... Glenn Linderman
- Re: assign to magic name-of-functi... Johan Vromans
- Re: assign to magic name-of-function va... Jarkko Hietaniemi
- Re: assign to magic name-of-function variab... Bart Lateur
- Re: assign to magic name-of-function va... Johan Vromans
- Re: assign to magic name-of-functi... John Porter
- Re: assign to magic name-of-functi... Ariel Scolnicov
- more POST recitation David L. Nicol
- Re: more POST recitation Ken Fox
- Re: assign to magic name-of-function variable instead of... Branden