LA.pm: Loop

James Pitts jamespitts at yahoo.com
Wed Jul 25 00:17:22 CDT 2001


Call me silly, but I sometimes do this:

while (0==0) {
 $condition = &test_stuff();
 last if ($condition);
}

Maybe I just like how that looks, plus it will keep
looping so long as 0 continues to equal 0 ...

:)

- James

--- Robert Spier <rspier at pobox.com> wrote:
> You don't really want ALL of the alternatives.
> 
> How about:
> 
> 	1 while ( cond );
> 
> But really,
> 	there's nothing wrong with
> 
> 	while( cond ) {};
> 
> 	it's very clear what you mean there.
> 
> -R
> 
> Quoting Arkadiy Sudarikov <asudarikov at xceed.com>:
> 
> > Hi peeps.
> > 
> > If I want to loop something but really not do
> anything, just loop, what
> > are
> > ALL of my alternatives?
> > 
> > See, check checkes something on the system, and
> can return true or
> > false.
> > So, if I want it to try to check until I get it,
> how do I loop, with
> > no
> > output, just loop?
> > 
> > while (system 'check') {} -- seems silly =o)
> > 
> > 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



More information about the Losangeles-pm mailing list