Perl Home | Notes | Exercises | Resources | perl Thoughts | Jen's Home | Summer Perl Seminar |
Week 1 ExercisesPractice runing code, and debugging. Here are some specific things to test yourself. Soultions will be posted this weekend.
Exercise 1Start with this program:
Exercise 2Remember that if the user typesAlso remember that if you want to compare strings, you use eq for equals and ne for not equals. Write a program that checks for a password. Expect that the user will type a password in as their argument, and you have to see if it is correct. Print a happy "Access Granted" type message if the password is correct, and an angry "go away evil doer" message if the password is incorrect. The password is: succulent.
|