> 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
- Re: assign to magic name-of-function variable instead of &... Simon Cozens
- Re: assign to magic name-of-function variable instead of &... Branden
- Re: assign to magic name-of-function variable instead... James Mastros
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Damian Conway
- Re: assign to magic name-of-function variable... John Porter
- Re: assign to magic name-of-function variable... Damian Conway
- Re: assign to magic name-of-function vari... John Porter
- Re: assign to magic name-of-function... David L. Nicol
- Re: assign to magic name-of-function vari... Glenn Linderman
- Re: assign to magic name-of-function... John Porter
- Re: assign to magic name-of-function vari... Damian Conway
- Re: assign to magic name-of-function... Edward Peschko
- Re: assign to magic name-of-function... abigail
- Re: assign to magic name-of-func... John Porter