Help for this page

Select Code to Download


  1. or download this
    while ()  { $_++; last if $_ == 1000; }
    while (1) { $_++; last if $_ == 1000; }
    for (;;)  { $_++; last if $_ == 1000; }
    
  2. or download this
    for (;;) {
        ++$_;
        last if $_ == 1000;
    ...
        last if $_ == 1000;
    }
    test.pl syntax OK