Skip to content

Perl : A Beginner's Guide

Best in textbook rentals since 2012!

ISBN-10: 0072129573

ISBN-13: 9780072129571

Edition: 2001

Authors: R. Allen Wyke, Donald B. Thomas

Blue ribbon 30 day, 100% satisfaction guarantee!
what's this?
Rush Rewards U
Members Receive:
Carrot Coin icon
XP icon
You have reached 400 XP and carrot coins. That is the daily max!

This text has been tailored to meet the needs of the beginning Perl programmer, with hands-on coverage, step-by-step instructions and tutorial sections. Perl is an important language for Web development and maintenance.
Customers also bought

Book details

Copyright year: 2001
Publisher: McGraw-Hill Osborne
Binding: Paperback
Pages: 474
Size: 7.25" wide x 8.75" long x 1.00" tall
Weight: 1.782
Language: English

Introductionp. xvii
Getting Startedp. 1
Introduction to Perlp. 3
The Historyp. 5
The Beginningp. 5
Up to Perl 4p. 6
Introducing Perl 5p. 7
What 5.6 Brings to the Tablep. 8
Platform Supportp. 9
Windowsp. 10
UNIXp. 12
Mac OSp. 12
Othersp. 12
Things You Need to Knowp. 13
How It Worksp. 13
Installing Perlp. 15
Installing Perlp. 15
Notes About the Platformsp. 27
Where to Get Helpp. 29
Creating a Perl Programp. 32
Getting Startedp. 33
A Hello Scriptp. 37
Going a Bit Furtherp. 39
Moving Onp. 41
Mastery Checkp. 42
Scalar Datap. 43
Data Typesp. 44
Numbersp. 44
Stringsp. 48
Variable Assignmentsp. 52
Naming Scalar Variablesp. 52
Assigning Values to Scalar Variablesp. 53
Saving Data to Scalar Variablesp. 54
What Operators Dop. 54
Common Operatorsp. 54
More Complex Operators and Functionsp. 64
Bit-Manipulation Operatorsp. 73
Operator Precedencep. 74
Working with Operatorsp. 77
Type Conversionp. 77
Mastery Checkp. 77
Control Structuresp. 79
Conditional Statementsp. 80
Statement blocksp. 80
The if-then-else Conditional Statementp. 81
The while Conditional Statementp. 86
The until Conditional Statementp. 88
The do while-until Conditional Statementp. 90
The for Conditional Statementp. 92
Creating a Counting Loopp. 94
The foreach Conditional Statementp. 95
The Single Line Conditional Statementsp. 98
Control Statementsp. 99
The next Control Statementp. 100
The last Control Statementp. 101
The redo Control Statementp. 102
Nested Loopsp. 104
Counting and Displaying Odd Numbersp. 106
Mastery Checkp. 107
Lists, Arrays, and Hashesp. 109
Listsp. 110
Arraysp. 114
Putting Items Inp. 114
Accessing Array Elementsp. 120
Working with Arraysp. 123
More Work with Arraysp. 125
Array Slicesp. 126
Array Functionsp. 134
Working with Stacksp. 138
Hashesp. 146
Mastery Checkp. 155
Program Flow and Subroutinesp. 157
Organization Basicsp. 158
Why You Should Organizep. 160
Okay, Define Logical and Functional!p. 161
Creating Code Segmentsp. 164
Subroutinesp. 168
Declaringp. 168
Using Our Subroutinep. 170
Argumentsp. 171
Predefined Subroutinesp. 174
Addition Subroutinep. 176
Returning Datap. 176
Advanced Topicsp. 179
Temporary Data with local ()p. 180
Private Data with my ()p. 184
Importing Subroutines from Packagesp. 186
Moving Onp. 187
Mastery Checkp. 188
Applying Your Knowledge
Working with Files and Directoriesp. 191
Basic File Manipulationp. 192
Opening and Closing Filesp. 192
Reading and Writing Filesp. 197
Reading from Filesp. 200
Creating Filesp. 206
Obtaining Status Information for a Filep. 212
Directory Accessp. 214
Moving Aroundp. 215
Searching for Filesp. 217
Mastery Checkp. 219
Regular Expressionsp. 221
What Are Regular Expressions?p. 222
Understanding a Patternp. 222
Built-in Operatorsp. 223
Pattern Matching Syntaxp. 224
Regular Expression Optionsp. 224
Searching for a Regular Expression in a Filep. 232
Search and Replacep. 250
Writing a find/replace Applicationp. 261
Mastery Checkp. 261
Packages and Modulesp. 263
Definitionsp. 265
What Is a Package?p. 265
What Is a Module?p. 266
How Do Packages and Libraries Work?p. 266
Constructor and Destructorp. 267
Loading Librariesp. 267
The package Statementp. 269
The Exporter Modulep. 270
Import ()p. 272
Importing a Modulep. 273
Building a Libraryp. 273
Do You Really Need To?p. 274
Design Considerationsp. 275
Documentationp. 275
Building a Libraryp. 276
Moving Onp. 280
Mastery Checkp. 281
Interacting with Databases Using the Perl DBIp. 283
Understanding Databasesp. 285
Setting Up Our Databasep. 287
Installing PostgreSQLp. 288
Preparing the Databasep. 289
Introduction to the DBIp. 294
Installing the DBI Modulep. 294
Using the DBIp. 298
Connectionsp. 298
available_drivers() and data_sources ()p. 299
Transaction Managementp. 300
Queriesp. 301
Warnings and Errorsp. 306
Returned Resultsp. 307
Moving Onp. 310
Mastery Checkp. 311
Writing CGI Programsp. 313
What Is CGI?p. 314
Quick Introduction to CGI.pmp. 315
CGI Programming Language Optionsp. 315
Using Perl for CGI Scriptsp. 316
Configuring Your Apache CGI Directoryp. 319
No-Parse Header Scriptsp. 326
Understanding Formsp. 327
Form Constructionp. 327
Another Way to Do a Submit Buttonp. 336
How Forms Are Submittedp. 338
A Simple Perl CGI Programp. 341
Sending and Receiving Datap. 342
URL Encodingp. 342
Environment Variablesp. 343
Cookiesp. 344
Returning Datap. 354
Processing Our Formp. 355
Quick Formattingp. 356
Extra Things You Can Do Manuallyp. 358
Creating Your Own Form and Scriptp. 364
Debugging Your Programp. 365
Moving Onp. 365
Mastery Checkp. 366
Cross-Platform Functions and Issuesp. 367
System ()p. 368
Return Codesp. 370
Using the Functionp. 372
Using the system () Function on the Mac OSp. 377
Operating System-Specific Issuesp. 379
Windowsp. 379
Creating a Script That Runs only on Windowsp. 381
UNIXp. 382
Mac OSp. 384
Creating a Cross-Platform Scriptp. 386
Moving Onp. 392
Mastery Checkp. 392
Error Messages and Debuggingp. 395
Understanding Error Messagesp. 396
Seeing Errorsp. 396
Common Practicesp. 399
Debugging Your Problemsp. 401
Command Line Optionsp. 402
The Perl Debuggerp. 402
Becoming Familiar with the Perl Debuggerp. 420
More Common Practicesp. 420
Mastery Checkp. 421
Advanced Features and Conceptsp. 423
Objected-Oriented Programmingp. 424
Encapsulationp. 428
Inheritancep. 428
Polymorphismp. 432
PerlScriptp. 432
Using on the Client Sidep. 433
But I Have Never Programmed in JavaScript/JScript or VBScript!p. 434
Server-Side Processingp. 436
Windows Script Hostp. 437
GUI Components with the Perl/Tkp. 439
What Is Perl/Tk?p. 440
Overview of the Toolkitp. 440
Hello, World! Dialog Boxp. 442
Conclusionp. 444
Mastery Checkp. 445
Answers to Mastery Checksp. 447
Introduction to Perlp. 448
Scalar Datap. 448
Control Structuresp. 449
Lists, Arrays, and Hashesp. 449
Program Flow and Subroutinesp. 450
Working with Files and Directoriesp. 450
Regular Expressionsp. 451
Packages and Modulesp. 452
Interacting with Databases Using the Perl DBIp. 452
Writing CGI Programsp. 452
Cross-Platform Functions and Issuesp. 453
Error Messages and Debuggingp. 453
Advanced Features and Conceptsp. 454
Indexp. 455
Table of Contents provided by Syndetics. All Rights Reserved.