Jenda Krynicky wrote: > Welcome to psh 0.7.1 by [EMAIL PROTECTED] > Running under Perl 5.008 > > psh$ do {print '.';print ':';} while ($x++ < 10); > .:.:.:.:.:.:.:.:.:.:.: > psh$ do {print '.';print ':';} while ($x++ < -10); > .: > psh$ do {print '.';print ':';last} while ($x++ < 10); > .: > c:\temp>psh > Welcome to psh 0.7.1 by [EMAIL PROTECTED] > Running under Perl 5.008 > > psh$ do {print '.';last;print ':';} while ($x++ < 10); > . > c:\temp> > > I guess I did not have enough sleep yesterday I should have noticed > this. I thought the docs mean that you can't use 'last', 'next' and > 'redo' on individual do{} blocks, but that perl is clever enough to > allow you to use them in a do{} block with a 'while' modifier. > > Sorry, Jenda > == [EMAIL PROTECTED] == http://Jenda.Krynicky.cz == > I wonder why the whole chemistry industry ignores > computer bugs. We all would gladly pay big bucks > for a functional insecticide.
Hi Jenda, I wouldn't let it get to me. In fact, I would take a general lack of working familiarity with do structures as a point of pride. I tend to think that the good, old-fashioned, prime-then-loop approach usually serves the same purpose as a do loop, but a little better. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]