Ted Ashton wrote:
> John Porter:
> > 
> > What would be the output of the following program:
> > 
> >     $\ = "\n";
> >     $i = 0;
> >     for ( .. -1 ) {
> >             $i++;
> >             last if $i > 2;
> >             print 
> >     }
> > 
> > If the answer is (as I suspect), "This never prints anything; it goes
> > into an infinite loop just trying to generate the first number", then
> > the proposal is absurd and should be scrapped.
> 
> By my understanding (which is definitely not very thorough), the output would
> be a run-time error.  

What error message?  "Program never halts!" ???

-- 
John Porter

Reply via email to