HW 9 Fall 07

crashclappergapSoftware and s/w Development

Dec 13, 2013 (3 years and 5 months ago)

55 views

CIT/CSE 251


Home Work 9



Today: 11/1/07




Fall 2007




Due: 11/08/2007


1.

List
5 benefits that Perl can bring if used for solving text
-
based problems

2.

Write a script which contains various types of loops. Print out the loop
counter each time that th
e script iterates.

3.

What are the basic data types in Perl

4.

Run the script shown at:

http://homepages.shu.ac.uk/~cmscrb/WebProg2/code2.php?src=sorter.pl&ch
ap=Eight&p
age=237


( this is the book author’s web page where he has given in Chapter 8 (2
nd

edition of the
book) on page 237 a Perl code.

Print the screen to show the result of running the Perl code.

Add comments to the script and explain.

[ Follow the s
teps given below

to install Perl in your computer].


5.

Quickly read section 11.6 : Creating and manipulating images.


To Install PERL in your computer:


VISIT the follow
i
ng site for Instructions:

http://home.wangjianshuo.com/archives/20021124_install_perl_on
_windows_
xp.htm


To Do
wnload Perl see the site below:

http://activestate.com/store/languages/register.plex?id=ActivePerl


CLICK on CONTINUE TO DOWNLOAD


GO T
O THE TABLE ActivePerl 5.8.8.822

choose

WINDOWS

x86


CLICK ON
MSI
(http://downloads.activestate.com
/ActivePerl/
Windows/5.8/ActivePerl
-
5.8.8.822
-
MSWin32
-
x86)


SAVE

ActivePerl
-
5.8.8.822
-
MSWin32
-
x86
-
257965

to Hard Disk


OPEN THE FOLDER


CLICK on ActivePerl
-
5.8.8.822
-
MSWin32
-
x86
-
257965

and install

(commands for installation may be slightly different in your

computer)

To Check whether installed correctly: Go to Command window: C:
\
Perl
\
eg
\
example.pl
and run it.