Help for this page

Select Code to Download


  1. or download this
    return unless ($i <= 0);
    
  2. or download this
    print "i = $i\n" while ($i++ < 10);
    $i = 0;
    print "i = $i\n" until ($i++ >= 10);
    print "$_\n" for (1..10); # note: for my $i ... doesn't work