Take the process_command_line.pl script improve in several ways:
- Check if the value given on the command line is indeed one
of the possible values and don't let other colors pass.
- Allow a --force flag that will disregard the previously implemented restriction.
- Read the names of the colors from a file called colors.txt
- Let the user pass the name of the color file using the --filename FILENAME option.
| Prev | Home (Copyright Gabor Szabo) Perl Training Israel | Next |
| Join | Up | Improve the Number Guessing game from the earlier chapter |