John Porter wrote: > http:[EMAIL PROTECTED]/msg02294.html > that the "handler" block should be nested within the block to > which it pertains, in much the same way that BEGIN and END blocks > reside inside the file to which they pertain. > > So: > > sub readit { > open F, "< $f" or die "$f: $!"; > <F>; > > catch { ... } > end { close F } > } > FWIW I agree that this is better than doing the parts in different places, post readit {...} seems like it could be very far away from sub readit {... and cause some serious AAAD confusion. Damian? -- David Nicol 816.235.1187 [EMAIL PROTECTED] www.tmcm.com, dammit
- 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
- Re: assign to magic name-of-function variable instead of... Glenn Linderman
- Re: assign to magic name-of-function variable instead of... Damian Conway
- Re: assign to magic name-of-function variable inste... Edward Peschko
- Re: assign to magic name-of-function variable inste... Glenn Linderman