> 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 inste... James Mastros
- Re: assign to magic name-of-function variable instead of... Branden
- Re: assign to magic name-of-function variable instead of... Simon Cozens
- Re: assign to magic name-of-function variable instead of... John Porter
- Re: assign to magic name-of-function variable instead of... James Mastros
- Re: assign to magic name-of-function variable instead of... Simon Cozens
- 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... Damian Conway
- Re: assign to magic name-of-function variable instead of... Damian Conway
- Re: assign to magic name-of-function variable inste... Jarkko Hietaniemi
- Re: assign to magic name-of-function variable instead of... John Porter
- Re: assign to magic name-of-function variable inste... David L. Nicol
- Re: assign to magic name-of-function variable instead of... abigail
- Re: assign to magic name-of-function variable instead of... abigail
- Re: assign to magic name-of-function variable instead of... David L. Nicol