In this carefully paced course, leading Perl trainers and a Windows NT practitioner teach you to program in the language that promises to emerge as the scripting language of choice on NT. Based on the "llama" book, this book features tips for PC users and new NT-specific examples, along with a foreword by Larry Wall, the creator of Perl, and Dick Hardt, the creator of Perl for Win32.
-
Chapter 1 Introduction
-
History of Perl
-
Purpose of Perl
-
Availability
-
Support
-
Basic Concepts
-
A Stroll Through Perl
-
Exercises
-
-
Chapter 2 Scalar Data
-
What Is Scalar Data?
-
Numbers
-
Strings
-
Scalar Operators
-
Scalar Variables
-
Scalar Operators and Functions
-
<STDIN> as a Scalar Value
-
Output with print
-
The Undefined Value
-
Exercises
-
-
Chapter 3 Arrays and List Data
-
What Is a List or Array?
-
Literal Representation
-
Variables
-
Array Operators and Functions
-
Scalar and List Context
-
<STDIN> as an Array
-
Variable Interpolation of Arrays
-
Exercises
-
-
Chapter 4 Control Structures
-
Statement Blocks
-
The if/unless Statement
-
The while/until Statement
-
The do {} while/until Statement
-
The for Statement
-
The foreach Statement
-
Exercises
-
-
Chapter 5 Hashes
-
What Is a Hash?
-
Hash Variables
-
Literal Representation of a Hash
-
Hash Functions
-
Hash Slices
-
Exercises
-
-
Chapter 6 Basic I/O
-
Input from STDIN
-
Input from the Diamond Operator
-
Output to STDOUT
-
Exercises
-
-
Chapter 7 Regular Expressions
-
Concepts About Regular Expressions
-
Simple Uses of Regular Expressions
-
Patterns
-
More on the Matching Operator
-
Substitutions
-
The split and join Functions
-
Exercises
-
-
Chapter 8 Functions
-
Defining a User Function
-
Invoking a User Function
-
Return Values
-
Arguments
-
Private Variables in Functions
-
Semiprivate Variables Using local
-
File-Level my( ) Variables
-
Exercises
-
-
Chapter 9 Miscellaneous Control Structures
-
The last Statement
-
The next Statement
-
The redo Statement
-
Labeled Blocks
-
Expression Modifiers
-
&&, ||, and ?: as Control Structures
-
Exercises
-
-
Chapter 10 Filehandles and File Tests
-
What Is a Filehandle?
-
Opening and Closing a Filehandle
-
Using Pathnames and Filenames
-
A Slight Diversion: die
-
Using Filehandles
-
The -x File Tests
-
The stat Function
-
Exercises
-
-
Chapter 11 Formats
-
What Is a Format?
-
Defining a Format
-
Invoking a Format
-
More About the Fieldholders
-
The Top-of-Page Format
-
Changing Defaults for Formats
-
The FileHandle Module
-
Exercises
-
-
Chapter 12 Directory Access
-
Moving Around the Directory Tree
-
Globbing
-
Directory Handles
-
Opening and Closing a Directory Handle
-
Reading a Directory Handle
-
Exercises
-
-
Chapter 13 File and Directory Manipulation
-
Removing a File
-
Renaming a File
-
Making and Removing Directories
-
Modifying Permissions
-
Modifying Timestamps
-
Exercises
-
-
Chapter 14 Process Management
-
Using system and exec
-
Using Backquotes
-
Using Processes as Filehandles
-
Summary of Process Operations
-
Win32::Process
-
Exercises
-
-
Chapter 15 Other Data Transformation
-
Finding a Substring
-
Extracting and Replacing a Substring
-
Formatting Data with sprintf( )
-
Advanced Sorting
-
Transliteration
-
Exercises
-
-
Chapter 16 System Information
-
Getting User and Machine Information
-
Packing and Unpacking Binary Data
-
Getting Network Information
-
The Registry
-
Opening and Reading Registry Values
-
Setting Registry Values
-
Exercises
-
-
Chapter 17 Database Manipulation
-
DBM Databases and DBM Hashes
-
Opening and Closing DBM Hashes
-
Using a DBM Hash
-
Fixed-Length Random-Access Databases
-
Variable-Length ( Text) Databases
-
Win32 Database Interfaces
-
Exercises
-
-
Chapter 18 CGI Programming
-
The CGI.pm Module
-
Your CGI Program in Context
-
Simplest CGI Program
-
Passing Parameters via CGI
-
Creating a Guestbook Program
-
Troubleshooting CGI Programs
-
Perl and the Web: Beyond CGI Programming
-
Further Reading
-
Exercises
-
-
Chapter 19 OLE Automation
-
Introduction to OLE Automation
-
Creating Automation Objects
-
Using Automation Objects
-
Variants
-
Tips and Techniques
-
Exercises
-
-
Appendix Exercise Answers
-
Chapter 2
-
Chapter 3
-
Chapter 4
-
Chapter 5
-
Chapter 6
-
Chapter 7
-
Chapter 8
-
Chapter 9
-
Chapter 10
-
Chapter 11
-
Chapter 12
-
Chapter 13
-
Chapter 14
-
Chapter 15
-
Chapter 16
-
Chapter 17
-
Chapter 18
-
Chapter 19
-
-
Appendix Libraries and Modules
-
Library Terminology
-
Standard Modules
-
CPAN: Beyond the Standard Library
-
Win32 Extensions
-
-
Appendix Networking Clients
-
A Simple Client
-
A Webget Client
-
-
Appendix Topics We Didn’t Mention
-
Full Interprocess Communications
-
The Debugger
-
The Command Line
-
Other Operators
-
Many, Many More Functions
-
Many, Many Predefined Variables
-
Symbol Table Manipulation With *FRED
-
Additional Regular Expression Features
-
Packages
-
Embeddible, Extensible
-
And Other Stuff
-
-
Colophon
- Title:
- Learning Perl on Win32 Systems
- By:
- Randal L. Schwartz, Erik Olson, Tom Christiansen
- Publisher:
- O'Reilly Media
- Formats:
-
- Safari Books Online
- Print Release:
- August 1997
- Pages:
- 312
- Print ISBN:
- 978-1-56592-324-9
- | ISBN 10:
- 1-56592-324-3
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The animal on the cover of Learning Perl on Win32 Systems is a wall gecko. Geckos are a very large and diverse family of lizards, with approximately 670 species. The wall gecko is found in North Africa, southern parts of Spain, France, and Italy, the Canary Islands, and some South Pacific islands. Their wide distribution is largely due to geckos stowing away aboard cargo ships. Wall geckos regularly live among humans, making their homes in the crevices of houses.
As their name implies, wall geckos can climb walls with ease, a skill they share with other geckos. Contrary to long-held opinion, they do not have suction cup- like fingers and toes. Instead, they have microscopic, hooked cells covering their digits. The cells hook into any tiny crevice or irregularity in a surface, even glass.
Geckos are the only reptiles that make extensive use of their voices. They communicate danger, attract mates, and mark territory using a range of chirps, squeaks, and barks. If caught, a gecko can break off a section of its tail using muscular contraction, which severs a tail vertebra. The tail will regenerate, but can never again be broken off at that particular site.
Wall geckos, which are nocturnal, have excellent vision. They have no eyelids, just a transparent scale covering the eye surface. Like cats' eyes, the gecko's pupil closes to a slit to restrict light, and opens to fill the iris at night. Edie Freedman designed this cover and the entire UNIX bestiary that appears on other Nutshell Handbooks. The beasts themselves are adapted from 19th-century engravings from the Dover Pictorial Archive. The cover layout was produced with Quark XPress 3.32 using ITC Garamond from Adobe. Whenever possible, our books use RepKoverTM, a durable and flexible lay-flat binding. If the page count exceeds RepKover's limit, perfect binding is used. ... The inside layout was designed by Nancy Priest and formatted in FrameMaker 5.0 by Mike Sierra using ITC Garamond Light and ITC Garamond Book fonts. This colophon was written by Clairemarie Fisher O'Leary.
