Perl Introduction, CMP 806
Course Description:
The Perl script programming language is in wide use in interactive, commercial, and scientific web sites and in the Bioinformatics industry to analyze, manage, call and display data. This course introduces Perl programming language basics including string processing, regular expressions, if statements, looping, functions, arrays, subroutines, receiving arguments from the web, and setting and reading cookies. Students will lean how to develop and execute basic Perl programs on the web. The course also will cover writing Perl/CGI (Common Gateway Interface) code for storing web-based information on a server database. This introductory course is useful for web designers and biologists researching Perl-based bioinformatics databases, for example.
Prerequisites:
Programming Fundamentals (CMP 122) or HTML Advanced (CMP 056) or equivalent programming experience. Basic knowledge of HTML/XHTML including web forms is desirable.
Technology update: Please bring a Flash Drive/Memory Stick 512MB or larger to class which will enable you to save your class work.
Textbook:
Books may be purchased at the MC Bookstore or online. You will need to know the CMP#(Continuing Education classes) for the class you are taking in order to look up information about the textbook.
Classroom hours: 15
Course Objectives:
At the end of this course students should:
- Understand the basic structure, formats, commands and uses of Perl
- Understand the web's Common Gateway Interface (CGI) and how to use it
- Write short Perl programs
- Know the basics for using and installing Perl and CGI
Outline:
- Introduction to Perl Programming and Common Gateway Interface
- Downloading and installing Perl
- Perl syntax and operation
- Creating an initial script;
- Printing a line of text.
- Scalar Data, Arrays, List Data, Control Structures
- Perl Variables and Data Types
- Array Operators and Functions
- Control Structures
- String Processing and Regular Expressions
- Creating and manipulating Arrays in Perl
- Perl and the Web
- Web Forms
- Passing parameters via CGI - Name, Value pairs
- Web environment - Client-side and server-side computers
- CGI Scripting
- Form Processing and Business Logic
- Create and process a form using a simple Perl script.
- Commercial and Scientific Users of Perl
- Commercial Perl scripts
- Product, price arrays; calculating purchase selections
- Scientific Research - Bioinformatics
- Introduction
- Perl string searches; variables, loops, scalar data;
- Pattern Matching and Regular Expressions
- Commercial Perl scripts
- Computer Lab
- Create a web form; parse, execute, print and return form data using Perl/CGI, or
- Create simple Perl string search of a bioinformatics databases.