Help for this page

Select Code to Download


  1. or download this
    User enters a list of food items
    Program looks up group for food items
    Program looks up rules to see if those groups can be combined or not.
    Program reports to user
    
  2. or download this
    @food=(
            ['eggs', 'fish'],
    ...
    );
    
    print $food[3][0]; # prints beer
    
  3. or download this
    %food=( 'carbs' => ['breed', 'rice'],
            'tasty' => ['chocolate', 'pistacio'],
    );
    print $food{tasty}[1]; # prints pistacio