On Jun 01, 2009 at 18:01, Juha Heinanen jh@tutpro.com wrote:
i'm not down to 3 syntax errors from 600+. here is one of them:
while (1) {
0(7054) WARNING: <core> [cfg.y:2898]: warning in config file, line 1838, column 12: constant value in while(...)
how do i write a while statement where condition is always true?
while(1), but you'll always get a warning on start-up. If you want to get rid of the warning you could try while(! defined $foobar), but it would have a minor performance impact.
Andrei