- Course Number:
- CIS 140S
- Course Title:
- Perl Script Programming
- Credit Hours:
- Lecture Hours:
- Lecture/Lab Hours:
- Lab Hours:
- Special Fee:
Course DescriptionPrepares students to install and configure Perl on Linux; design, implement, and test Perl scripts; debug Perl scripts; and locate, read and integrate information from a variety of technical sources. Recommended: Experience writing shell scripts and using Unix regular expressions as covered in CS 140U or equivalent. Audit available.
Intended Outcomes for the course
On successful completion of this course the student should be able to:
Ã explain the advantages of using Perl for a scripting tool
Ã demonstrate the proper use of Perl syntax, including control structures and expressions
Ã properly use of scalars, arrays and associative arrays
Ã demonstrate how to write and properly use Perl regular expressions
Ã demonstrate the use of built-in Perl functions
Ã design and write Perl functions
Ã use of the various types of Input and Output.
Course Activities and Design
This course is an on-line course featuring reading material, on-line discussions, and individual lab assignments.
Outcome Assessment Strategies
Through exams and lab assignments students will be assessed to determine if they are able to:
Ã Setup and Communicate through a secure shell with a Linux system
Ã Create scripts that will execute automatically in the Linux environment
Ã Write scripts which demonstrate ability to input data to the script through pipes, keyboard input, and files.
Ã Write scripts which demonstrate ability to output data to screen and files.
Ã Write scripts to demonstrate knowledge of Perl data types.
Ã Write scripts to modify the contents of files.
Ã Write scripts to extract specific contents of a file.
Ã Show effective use of regular expressions in Perl..
Ã Show use of arrays and lists.
Ã Use the sort function in Perl.
Course Content (Themes, Concepts, Issues and Skills)
Upon successful completion of this course, the student will have satisfactorily accomplished the goals and objectives listed in this content guide.
Ã Explain why to use Perl instead of other scripting tools like sed, awk and shell scripting.
Ã Explain how to obtain Perl for various operating systems
Ã Explain how to automate the execution of a Perl script
Ã Define and use scalar literals, variables and scalar operators
Ã Define and use lists, arrays, slices, and array operators
Ã Define and use associative arrays (hashes) and hash operators
Ã Demonstrate the use of Control Expressions
Ã Demonstrate the use of Selection Statements like if and unless
Ã Demonstrate the use of Interactive Statements like while, until, foreach and for
Ã Demonstrate the use of the Perl statements next, last, redo and die
Ã Demonstrate the use of pattern matching
Ã Demonstrate the use of the substitute command
Ã Demonstrate the use of the translate command
Ã Discover the wealth of built-in predefined functions
Ã Write scripts which sort data
Ã Use other standard Perl functions like split, chomp, chop, Perl functions
Ã Design and create a function without parameters
Ã Design and create a function with parameters
Ã Use the standard input operator <>
Ã Use print and printf for output
Ã Use files and file handles
Ã Open and close files
Ã Read and write files