CS 192 First Year Seminar
Spring 2013
Lab: Perl Lab #1
Home
Syllabus
Schedule
Major Project
Ram CT
Lab: Perl Lab #1
Instructions:
Create the sample Perl script from the perl script lab #1 slides
attached to this assignment
, see slide #4.
Add a second question to your Perl script
What happens if you leave out the chomp statement? Take it out, try it, and then put it back.
What happens if you leave off the semicolon after “What is your name” Take it off, try it, and then put it back.
What happens if you leave off the quote after “What is your name? Take it off, try it, and then put it back.
Look in Google for Perl “while” loop. Add a while loop to your Perl script.