To hand in the assignment
Get your server running on mongoose. Create a simple home page in the document root.
Write a perl program. The program will be executed from the command prompt on mongoose. It will not be called from a web browser (you don't know how to do that yet, so please don't try.)
Write a perl program that will display a menu like the following
1. Count Words 2. Process Numbers 3. Quit Program Please make a selection:
The program will accept input and perform an action as described below. After performing the action for the menu item, the menu will be displayed again. Continue accepting input and performing an action until the user inputs 3. After selecting option 3, display a count of how many times option 1 was selected and a count of how many times option 2 was selected. The valid input values are 1, 2, 3. If any other value is entered by the user, display an appropriate error message and redisplay the menu.
Perform these actions for the selected menu item
Notes
($filename) = glob $filenameThese are a list of test files that you can use. I may use different files to test your programs.
Here are some examples of the output:
| Count Words | Count Words Extra | Process Numbers | 
14 a 1 action 1 again 4 all 1 allows 1 along 1 also 1 an 2 and 1 appear 1 appears 6 are 4 as 7 assembly 3 assume 8 at 1 avery 1 back 2 be 1 because 2 branch 4 but 1 can 47 car 6 cars 1 case 11 complete  | 
    47 car 32 the 24 to 19 min 18 1 16 inst 14 a 14 4 14 2 12 it 11 would 11 station 11 complete 11 each 10 on 10 is 9 3 9 minutes 8 there 8 at 7 working 7 line 7 assembly 7 20 6 takes  | 
         average     minimum     maximum       total       count
          47           2          99        1383          29
      number   delta avg   delta max   delta min
          88          41         -11          86
          90          43          -9          88
          74          27         -25          72
          99          52           0          97
          95          48          -4          93
          74          27         -25          72
          83          36         -16          81
          80          33         -19          78
          80          33         -19          78
          52           5         -47          50
          86          39         -13          84
          67          20         -32          65
          96          49          -3          94
     |