CCOG for CIS 140S archive revision 201403

You are viewing an old version of the CCOG. View current version »

Effective Term:
Summer 2014 through Summer 2017

Course Number:
CIS 140S
Course Title:
Perl Script Programming
Credit Hours:
1
Lecture Hours:
5
Lecture/Lab Hours:
0
Lab Hours:
15

Course Description

Prepares 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