PERL: Advanced Programming
Course Description
On successful completion of this course students will be able to:
- Write PERL code that is easy to use, easy to read and easy to extend.
- Take advantage of teh rich context created by other PERL programmers and the free software they have published.
- Utilise nested variables and references to manipulate values within arrays and hashes.
- Manipulate some useful PERL functions that handle arrays, hashes and strings.
- Use advanced features of the PERL programming language to save time and provide solutions to difficult problems.
- Interact with the server, manipulate files and directories, and process external programmes on the server.
- Use SQL databases from PERL scripts to save programming time and improve performance.
- Use cookies for sessions and authentication.
- Work with a range of e-commerce solutions, from simple order forms to shopping basket and real-time credit card transactions.
- Write PERL scripts that send e-mails
- Use HTML templates to enhance the integration of script-generated content with the design of the pages in which it appears.
- Re-use PERL code by creating subroutines and modules.
- Create PERL programmes that work well in the command line environment.
- Find and solve tricky and elusive bugs in scripts.
- Extend the capabilities of scripts by running other programmes.
- Write PERL scripts that run on any platform.
Duration: 2 days
Literate programming for PERL
Literate programming
Comments
Code formatting conventions
Naming variables and subroutines
Documentation
Using PERL modules
CPAN: Comprehensive PERL Archive Network
Using PERL modules
Objects and Methods
Module managers
Installing modules manually
References and nested variables
Introduction to references
Creating references
Values for references
Status notification functions
Evaluation of PERL code
Linear tex processing functions
Array processing functions
Hashes
Random number generation
Advanced command structure topics
Using Next and Last in loops
Establishing default input with $_
Advanced comparison operations
File and directory manipulation for PERL
File and directory manipulation operators
PERL file and directory functions
Locking a file
Database concepts
Database products
Basic database concepts
PERL interface and drivers
Using SQL in your script
Database design
Advanced SQL
Web concepts
CGI.pm
Sessions and cookies
e-Commerce
Online order forms
Shopping basket
Downloading orders
Real-time credit card processing
Using PERL to send e-mail
Using a mail server from PERL
Net::SMTP
Automated e-mail tasks
Using HTML templates
Simple HTML templates
HTML::Template
Creating Subroutines
Strategies for code re-use
Subroutines
Scope
Passing parameters to subroutines
Returning results from subroutines
Recursive subroutines
PERL libraries and modules
PERL libraries
Modules
Command line environment for PERL
Standardizing command-line syntax
PERL flags
Debugging code
Getting better debugging information
Using the PERL debugger
Interfacing with outside programmes
Invoking operating system commands
Pipes
Platform considerations
Installing PERL
Cross-platform issues