Re: important bug - war (openldapd #57469)
Brian May wrote:
> I strongly suspect that problem is that the break cannot exit from the
> while loop. As a test example:
>
> perl -e 'while (1) { print "hi\n"; break; }'
>
> this never exits the loop. Then again does break even exist in perl??
> I think the fix is to replace "break" with "last". Not tested.
Yes, of course it is. To illistrate:
joey@gumdrop:~>perl -e 'there_is_no_perl_command_with_this_name'
joey@gumdrop:~>perl -we 'there_is_no_perl_command_with_this_name'
Useless use of a constant in void context at -e line 1.
This is why you should always use -w.
'last' is the correct command.
--
see shy jo
Reply to: