Help for this page

Select Code to Download


  1. or download this
    my %eats = (
       Tom   => [ qw(       apple orange pear ) ],
    ...
          printf("%-6s %s\n", $fruit, $eater);
       }
    }
    
  2. or download this
    sub nice_list {
       return ''    if @_ == 0;
    ...
       print("$num_eaters person$p eat$s ${fruit}s: ",
             nice_list(@$eaters), "\n");
    }