Uploaded by Sara Waters

Chapter 9 Assignment

advertisement
CSCI 3800 Introduction to UNIX
Chapter 9 – Assignment
Due: November 2, 2019 at 11:59p (EST)
Practice Exercise: Please practice Hands-On Projects 9-1 thru 9-9 to enhance your
understanding of the UNIX and Linux operating systems.
Discovery Exercises: Answer the following 5 questions (3 points each) and submit (upload to
eLearning@UNG) in a separate PDF file.
1.
Write a Perl script to display the line “Perl was developed by Larry Wall”.
2.
Design a Perl program that sorts the last names Martin, Adams, Sandoval, Perry, Yablonsky, Brown, and Ramirez.
3.
Write a Perl program that contains a hash variable and displays the keys. The hash variable contains the following key and
value combinations:
Key
Value
1
2
3
4
Martin
Hanson
Stephens
Rawlins
4.
You have written the following line in a Perl program:
$filein = $ARGV[0];
What is the purpose of this line?
5.
In the following statement, when is “Could not open students file” displayed?
open (FILEIN, "students") || warn "Could not open students
file \n" ;
Download