Home Page Icon
Home Page
Table of Contents for
Appendixes
Close
Appendixes
by Steve Oualline
Perl for C Programmers
Copyright
About the Author
About the Technical Reviewers
Acknowledgments
Tell Us What You Think
Introduction
Using Perl
Exploring Perl
Online Documentation
CPAN (The Module Archive)
Installing Modules
Using the Perl Debugger
Summary
Exercises
Resources
Perl Basics
Writing Your First Perl Program
Variable Declarations and Simple Expressions
Reading Input
The if Statement and Relational Operators
The Definition of Truth
Looping Statements
Simple I/O
Summary
Exercises
Resources
Arrays
Basic Arrays
Manipulating the Array Ends
The splice Function
The split and join Functions
Sorting an Array
Multiple Dimension Arrays
The @ARGV Variable
The English Module
Summary
Exercises
Resources
Regular Expressions
Basic Regular Expressions
Substitutions
The grep Function
Summary
Exercises
Resources
Perl’s New Syntax
New and Useful Syntax
Perl’s Darker Corners
Summary
Exercises
Resources
Hashes, References, and Complex Data Structures
Hashes
References
Translating C Data Structures into Perl
Summary
Exercises
Resources
Subroutines and Modules
Subroutines
Packages
Summary
Exercises
Resources
Object-Oriented Programming
Using a Hash as an Object
Basic Perl Objects
Operator Overloading
Summary
Exercises
Resources
Advanced I/O
Opening a File (Revisited)
sysopen (Advanced open)
Reading a Binary File
File Handling Package
Passing a File Handle to a Subroutine
References to a File Handle
Summary
Exercises
Resources
POD
POD (Plain Old Documentation)
Turning POD into Something Readable
Putting a --help Option in Your Files
The POD Template
Summary
Exercise
Resources
Under the Hood
What Really Goes on When You Use Perl
The Exporter Package
How import and AUTOLOAD Work
Summary
Resources
CGI Programming
Simple CGI
CGI Hello World
Basic Forms
Creating the CGI Program
Debugging a CGI Script
Interactive Debugging
Cookies
Summary
Exercises
Resources
Creating GUIs with Tk
Tk Basics
Tk Widgets
Geometry Managers
Special Widgets
Events
General Design Hints
Putting It All Together
Summary
Exercises
Resources
Combining C and Perl with Inline::C
What Is the Inline Module?
Hello World
Simple Arguments and Return Values
How Perl Handles Variables
Returning Multiple Values
Calling Perl from C
Configuring Inline
Making a Distributable Module
Summary
Exercises
Resources
Putting It All Together
Perl and Databases
Database Design
Database Implementation
The disk.pm Module
GUI Interface
The CGI Version
Errors and Messages
Summary
Exercises
Resources
Cookbook
List Differences
Call 1-800-Confuse-Me
Time Adjustment
Calendar Programs
Duplicate File Checker
Table Formatting
Log File Viewer
Web Site Checker
Orphan Detection
Object File Cross-Reference System
Extracting Information with ox.pl
Counting Web Page Hits
Summary
Exercises
Resources
Creating Modules
The Module Creation Process
Module Creation Cookbook
Debugging a Module
Summary
Exercises
Resources
Appendixes
Installing Perl
Installing Perl on Linux
Installing Perl on UNIX or Linux from Source Code
Installing Perl on Microsoft Windows
Turning Perl Scripts into Commands
The UNIX/Linux Magic String
Using the env Prog ram
The Shell Script Method
Microsoft Windows .bat File
Resources
Beyond Perl
Databases
Tools for C/C++ Programmers
Resources
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Resources
Next
Next Chapter
Installing Perl
Part II: Appendixes
A
Installing Perl
B
Turning Perl Scripts into Commands
C
Beyond Perl
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset