R. Joseph Newton wrote:
> [EMAIL PROTECTED] wrote:
> 
> >     if (!$pid) { &player(); }
> >     while (!-e "stop") { sleep(10); }
> >     kill('QUIT', $pid);
> 
> ...
> 
> > Am I missing something here? Any idea how I could do this
> > differently? 
> > 
> 
> Yes.  Braces.  They may not be required here--are you using
> strict?--but they would certainly make more clear to any
> human reading this code what your intent is.  A control
> statement is meant to control a block of code.  The block
> could be empty, have an empty statement, have a single line,
> or have a series of stements affecting the flow of tens of
> thousnads of lines of code.  No matter how obvious it seems,
> marking your execution blocks is worth the effort.

What braces are missing?

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to