[sr-dev] syntax error in while condition

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Jun 1 17:59:22 CEST 2009


On Jun 01, 2009 at 18:36, Juha Heinanen <jh at tutpro.com> wrote:
> Andrei Pelinescu-Onciul writes:
> 
>  > 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.
> 
> i don't want the performance hit.  please remove the warning.  i don't
> get that kind of warning in other programming languages either.

You don't becaue that are languages were an infinite while() makes
sense. In a sip-router script the while() by itself is strange, and
an infinite while is an abomination :-)

Andrei



More information about the sr-dev mailing list