CSIS054: Perl ProgrammingHomework set 1
|
What to turn in: You will upload a single plain-text file containing your answers to the entire assignment. Since some of your answers should be contained in a single file, (for example, #4, below, is a self-contained script) I ask that you indicate the questions you are answering like this:
|
1. Enter the hello.pl/hello2.pl scripts and run them on your computer. Did it work as expected? Which perl interpreter are you using? Which text editor are you using?
|
2. Type perldoc chomp at the command line, OR, look up the chomp function on the perlfunc reference page. What does the chomp function do?
|
3. Write a script that computes 4.444 x 5.555.
|
4. Modify the madlib.pl script to display a story that you invent. Change the nouns, verbs, and other word types as needed to make your story interesting.
|
Address of this page is http://hhh.gavilan.edu/phowell/csis054/01problems1.html
Please contact Peter Howell at phowell@gavilan.edu for questions or comments.
Last updated January 10, 2010.