Prerequisite: Individuals with
minimal prior programming knowledge or experience, but not necessarily in
Perl. Some high level modular programming concepts would be helpful.
Class Description: By the use of
lectures, demonstrations and lab exercises, this mini course will teach
attendees how to effectively use the Perl programming language, one
of the best scripting and web CGI languages on UNIX platforms. Students
will learn Perl syntax, how variables, data structures and functions are
handled in Perl, searching techniques including using regular expressions,
and how to access and manipulate files.Topics such as database
connectivity, cgi web scripting and using objects in Perl may be addressed
if time permits.
Targetted for: Individuals with some
prior programming knowledge and/orscripting experience, along with
exposure to using Unix as a user. This class is ideal for individuals that
want to learn Perl from the ground up. The class will proceed at a pace
that will allow most individuals, with the willingness to learn this
material, to keep up with the class.
Handouts: Copies of the course
outline slides will be provided along with relevant handouts when
appropriate.
Content summary:
Class 1 - An Overview of Perl:
Getting started, and introduction to Perl and the power of the language,
comments and syntax, quoting, data types and scalars variables, assignment
statements, mathematical operators, console input and output, conditional
constructs, Boolean expressions, logical connecting operators, control
flow branching and looping, scalar operators including numeric and string.
Introduction to regular expression (RE) pattern matching.
Class 2 - The Gory Details:
Variables, data type and scalars review, including topics such as auto
conversion, auto-increment/decrement, advanced assignment operators
and operator precedence, relational operators, bitwise logical operators,
and short-ciruit logical operators. Then on to the details of using
regular expressions, lists, list literals, range operators, splits and
joins, arrays, sub-elements, max subscript operator, foreach, stacks and
queues, push, pop, and shifts. Finally, an introduction to hashes and
associative arrays, keys input/output redirection and special variables is
provided.
Class 3 - Using Associative Arrays,
Procedures and Databases: More details and examples on using
associative arrays, keys and values, sorting, and input/output.m
Discussion on the benefit of using local variables in Perl, passing
arguments to subroutines and returning back values. More on special Perl
variables, file open statements and file handles, ARGV for retrieving
arguments from the command line, scope and lifetime. Discussions on Perl
access of environment variables, Perl packages, symbol table and
namespace. More labs to program, including the use of Perl along
with SQL statements to access databases, demonstrations of use of Perl in
Web sites, CGI programming and course wrapup.
Lecturer’s biography: Jeffrey
Goldberg is a long time innovative user of UNIX and Internet services. Mr.
Goldberg currently develops and teaches courses on Unix Fundamentals,
Shell and Perl Programming, Unix System Administration and Security,
TCP/IP Network Administration in a Multi-Platform Environment,
Introduction to Programming, Basic and Advanced Visual Basic
Programming incorporating SQL Database Access, Web Technologies such as VB
Script, Java Script, Java, Visual ‘C’ and ‘C++’, for Worcester Polytechnic
Institute and Boston University. Mr. Goldberg iscontinually adding new
cutting-edge technology to his curriculum, and accepts requests for
customized on-site corporate training classes. New course available this
fall: Development of Dynamic Web Pages Using Apache, SQL and PHP on a Unix
Server. Besides operating Qualware Instructional Services, Mr.
Goldberg is also a principal of Qualware Consulting Group, which designs
electronics for fault tolerant networks, specialized network adapter
hardware and embedded customized controller cards. Mr. Goldberg has
recently form a new company called Qualware Internet Services specializing
in Internet/Intranet security, application servers, web hosting, and
dynamic web applications. For more information, e-mail to
training@qualware.com or contact Mr.
Goldberg at 781-229-1530 or
j.goldberg@ieee.org or
www.consultme.com/qualware
copywrite 2003 Qualware Instructional
Services and Jeffrey Goldberg.