On Tue, Nov 25, 2003 at 01:03:19PM +1100, Damian Conway wrote: > Schwern observed: > >This may be a consequence of the example used > > > > while $n++ then $foo > $bar > > > >which I immediately associated with. > > > > if $n++ then $foo > $bar > > Yeah, I can certainly see that. > > Perhaps this is yet another argument for insisting on: > > while do {$n++; $foo > $bar} > > instead.
That looks like syntactic sugar for while (do) {$n++; $foo > $bar} and could be interpreted as either: while "do" {...} ## perl5 bareword while do() {...} Luke's "then" feels like the best fit on the one hand, and the worst fit on the other. Everything else feels worse, though. Z.