Next:
Introduction
Up:
Introduction to Perl Programming
Previous:
Introduction to Perl Programming
Contents
Contents
Introduction
History
Interpreter vs. Compiler
How is Perl like other Languages?
How is perl different from other languages
Invoking perl
Command Line Flags
Online Documentation
Variables
Basics
Arrays
Default Values
Assignments
System Variables
Scalar Data
Operators for String Scalar Values
Quoting Operators
Operators for Numeric Scalar Values
Comparison Operators
Arrays and Lists
The Basics
Using a List in a Scalar Context
Creating Arrays
Functions for Array and List Processing
Array Slices
Control Structures
Basics
Combining Logical Expressions
if
and
unless
statements
Compound Statements
The
while
statement
The
foreach
loop
The
for
statement
Control within Loops
Hashes
What is a hash?
Hashes and Lists
Functions for Working with Hashes
Basic I/O
The ``diamond'' operator
The empty diamond operator (
<>
)
Printing
Filehandles
More Magic from the diamond operator
The IO Module: Wave of the Future?
Changing the Destination of
print
and
printf
Printing Blocks of Text
Printing to a String
Regular Expressions
Introduction to Regular Expressions
Operators to Work with Regular Expressions
Constructing Regular Expressions
Options to the Regular Expression Operators
Tagging of Regular Expressions
Greediness of Regular Expressions
Matching Multiple Occurences of a Pattern
Substitutions
Functions
Introduction
A Simple Example
Function Arguments
Return Values
Passing Arrays to Functions
Using References to Pass Arguments
Interacting with the Operating System
Introduction
The backquote (
`
) operator
File Test Operators
The
stat
function
The
system
function
Environmental Variables
File and Directory Manipulation Functions
User Information Functions
Reading Directories
A Few Perl Functions
Introduction
map
and
grep
substr
sort
sleep
pack
and
unpack
eval
Perl on the Web
Introduction
Transmitting Information through CGI
Data Tainting
A Simple CGI program
The
CGI
module
Fill-out Forms
HTML Helper methods in the
CGI
module
Combo Forms
User Information methods
Debugging CGI scripts
Web Clients: the
LWP
module
Accessing Email: the
Net::POP3
module
Usenet News: the
News::NNTPClient
module
FTP: the
Net::FTP
module
Two-way Internet Connections: the
Socket
module
Database Access: the
DBI
module
About this document ...
Phil Spector 2002-10-18