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: assign to magic name-of-function variable instead of &... Damian Conway
- Re: assign to magic name-of-function variable instead... Edward Peschko
- Re: assign to magic name-of-function variable instead... Glenn Linderman
- Re: assign to magic name-of-function variable instead... Johan Vromans
- Re: assign to magic name-of-function variable instead of &... abigail
- Re: assign to magic name-of-function variable instead of &... James Mastros
- Re: assign to magic name-of-function variable instead of &... John Porter
- Re: assign to magic name-of-function variable instead of &... Tony Olekshy
- Re: assign to magic name-of-function variable instead... Glenn Linderman
- Re: assign to magic name-of-function variable instead of &... Bart Lateur
- Re: assign to magic name-of-function variable instead of &... Johan Vromans
- Re: assign to magic name-of-function variable instead... John Porter
- Re: assign to magic name-of-function variable instead... Ariel Scolnicov
- Re: assign to magic name-of-function variable instead of &... John Porter
- Re: assign to magic name-of-function variable instead of &... Peter Scott
- Re: assign to magic name-of-function variable instead of &... John Porter
- Re: assign to magic name-of-function variable instead of &... Peter Scott
- Re: assign to magic name-of-function variable instead... David L. Nicol
- Re: assign to magic name-of-function variable instead of &... John Porter