LA.pm: Loop

Ask Bjoern Hansen ask at valueclick.com
Mon Jul 30 00:02:11 CDT 2001


On Tue, 24 Jul 2001, James Pitts wrote:

> Call me silly, but I sometimes do this:
>
> while (0==0) {
>  $condition = &test_stuff();
>  last if ($condition);
> }

it would be much more perl'ish to do

while (1) {
  last unless test_stuff();
}

:-)


 - ask

-- 
ask bjoern hansen, http://ask.netcetera.dk/   !try; do();
more than 100M impressions per day, http://valueclick.com




More information about the Losangeles-pm mailing list