Perl Assignment #2:  Scalar Data

 

CS 447/647

Spring, 2012

 

 

Due: 2/7/12

 

Read chapter 2 of Learning Perl.  Do exercises 3 and 5 at the end of the chapter.

 

Make your Perl scripts executable by using the chmod command:

 

chmod u+x filename

 

 

Add this as the first line of your Perl scripts:

 

#! /usr/bin/perl

 

If this is not the location on your system, use the whereis command to find out where Perl is located.

 

Submit a script session with the output from exercises 3 and 5 on Web Campus.

 

 

Hands-On Exercise

 

Finish your “Web Presence” exercise if you have not already done so:

 

If you do not already know how to use the vi editor, work your way through the article “An Introduction to Display Editing with Vi” by William Joy.  A copy of this article is at:

 

http://docs.freebsd.org/44doc/usd/12.vi/paper.html

 

Links to Vi/Vim cheat sheets will be posted on the class website: