Help for this page

Select Code to Download


  1. or download this
    for my $count (0..2) {
      my $s = (1 == $count)? "": "s";
      print "$count iteration$s so far...\n";
    }
    
  2. or download this
    for my $cheese_eaters (0..2) {
      my $noun = (1 == $count)? "mouse": "mice";
      print "$cheese_eaters $noun so far...\n";
    }