At 02:17 PM 2/7/01 -0500, John Porter wrote: >Peter Scott wrote: > > > > I want the 'try' there for my sake, not Perl's; ... it > > helps alert me that the following block is subject to non-local control > > flow rules. > >Huh? Down that road lies the Java madness. > > eval { > foo(); > }; > > sub foo { > bar(); > } > > sub bar { > die $barney; > } > >All three of these blocks are "subject to non-local control flow rules", >including the body of foo. Sorry, I wasn't clear. Let me rephrase. The 'try' helps me determine that the following block is going to be subject to exception handlers which will immediately follow as siblings of the block. Somewhat as I would look at an if...elsif...else construct, it helps me put the block in context as I'm reading it and also look ahead fo those handlers. I prefer this to discovering a handler as I'm reading and then looking for the enclosing block, or coming across an undecorated block and scanning to see if this is because it has embedded handlers or is to create a closure, or to use a redo, or... -- Peter Scott Pacific Systems Design Technologies
- 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 instead... Edward Peschko
- Re: assign to magic name-of-function variable instead... abigail
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Tony Olekshy
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Peter Scott
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Peter Scott
- Re: assign to magic name-of-function variable ins... David L. Nicol
- Re: assign to magic name-of-function variable ins... John Porter
- Re: assign to magic name-of-function variable ins... Peter Scott
- Re: assign to magic name-of-function variable ins... David L. Nicol
- Re: assign to magic name-of-function variable ins... Nicholas Clark
- POST blocks (like END, but in a sub or sub-like s... David L. Nicol
- Re: POST blocks (like END, but in a sub or sub-li... Nicholas Clark
- Re: POST blocks (like END, but in a sub or sub-li... David L. Nicol
- Re: POST blocks (like END, but in a sub or sub-li... Nicholas Clark
- Re: POST blocks (like END, but in a sub or sub-li... Bart Lateur