Re: while ... continue loops

2001-07-17 Thread Michael Fowler
On Tue, Jul 17, 2001 at 11:17:05AM -0500, Mooney Christophe-CMOONEY1 wrote: > I have been programming perl for quite some time, but i have never used a > 'continue' block. It seems just as easy to put any code that one would > normally put in a continue right into the loop itself. What is the pu

Re: while ... continue loops

2001-07-17 Thread Will Cottay
As I recall, the Camel book says something like "the continue block is not used often in practice" or something like that. I've not used it either, but you'd use it if you had code in the loop that interrupts the loop with a next. The code after the continue gets executed before the condition i

Re: while ... continue loops

2001-07-17 Thread Brett W. McCoy
On Tue, 17 Jul 2001, Mooney Christophe-CMOONEY1 wrote: > I have been programming perl for quite some time, but i have never used a > 'continue' block. It seems just as easy to put any code that one would > normally put in a continue right into the loop itself. What is the purpose > of a continu

while ... continue loops

2001-07-17 Thread Mooney Christophe-CMOONEY1
I have been programming perl for quite some time, but i have never used a 'continue' block. It seems just as easy to put any code that one would normally put in a continue right into the loop itself. What is the purpose of a continue block? Is there a time where a continue might be prefered to