CGS3993, Spring 1999, Perl Assignment 1

Due Tuesday 2/9 at the start of class

Read chapter 2 of the Perl book. Write a PERL script that will do the following

Here is a sample of the output

Please enter something: 12we3
Please enter something else: 3er4

Here is the input
	something: "12we3

"
	something else: "3er4

"

Here is input after chomp
	something: "12we3"
	something else: "3er4"

Here is the input treated as numbers
	something: "12"
	something else: "3"
	12 + 3 = 15


Here is the input treated as strings, and concatenated
        "12we3" . "3er4" = 12we33er4

Here is the first repeated the second number of times
	"12we3" x "3" = "12we312we312we3"

Read chapters 3 and 4 of the Learning Perl book. Write a Perl program that does the following

Where is Perl????

On solix the command for Perl will be
#!/home/sol2/bin/perl

On mongoose the command for Perl will be
#!/usr/local/bin/perl

Creating and Running the program

Handing it in