Flylib.com
Learning Perl, 5th Edition
Learning Perl, 5th Edition
ISBN: 0596520107
EAN: 2147483647
Year: 2001
Pages: 205
Authors:
Randal Schwartz
,
Tom Phoenix
,
brian d foy
BUY ON AMAZON
Copyright
Preface
Typographical Conventions
How to Contact Us
Code Examples
History of This Book
Acknowledgments
Chapter 1. Introduction
Questions and Answers
What Does Perl Stand For?
How Can I Get Perl?
How Do I Make a Perl Program?
A Whirlwind Tour of Perl
Exercises
Chapter 2. Scalar Data
What Is Scalar Data?
Numbers
Strings
Perl s Built-in Warnings
Scalar Variables
Output with print
The if Control Structure
Getting User Input
The chomp Operator
The while Control Structure
The undef Value
The defined Function
Exercises
Chapter 3. Lists and Arrays
Accessing Elements of an Array
Special Array Indices
List Literals
List Assignment
Interpolating Arrays into Strings
The foreach Control Structure
Perl s Favorite Default:
Scalar and List Context
STDIN in List Context
Exercises
Chapter 4. Subroutines
System and User Functions
Defining a Subroutine
Invoking a Subroutine
Return Values
Arguments
Private Variables in Subroutines
The local Operator
Variable-length Parameter Lists
Notes on Lexical (my) Variables
The use strict Pragma
The return Operator
Exercises
Chapter 5. Hashes
What Is a Hash?
Hash Element Access
Hash Functions
Typical Use of a Hash
Exercises
Chapter 6. IO Basics
Input from Standard Input
Input from the Diamond Operator
The Invocation Arguments
Output to Standard Output
Formatted Output with printf
Exercises
Chapter 7. Concepts of Regular Expressions
What Are Regular Expressions?
Using Simple Patterns
A Pattern Test Program
Exercises
Chapter 8. More About Regular Expressions
Character Classes
General Quantifiers
Anchors
Memory Parentheses
Precedence
Exercises
Chapter 9. Using Regular Expressions
Matches with m
Option Modifiers
The Binding Operator,
Interpolating into Patterns
The Match Variables
Substitutions with s
The split Operator
The join Function
Exercises
Chapter 10. More Control Structures
The unless Control Structure
The until Control Structure
Expression Modifiers
The Naked Block Control Structure
The elsif Clause
Autoincrement and Autodecrement
The for Control Structure
Loop Controls
Logical Operators
Exercise
Chapter 11. Filehandles and File Tests
What Is a Filehandle?
Opening a Filehandle
Fatal Errors with die
Using Filehandles
Reopening a Standard Filehandle
File Tests
Exercises
Chapter 12. Directory Operations
Moving Around the Directory Tree
Globbing
An Alternate Syntax for Globbing
Directory Handles
Recursive Directory Listing
Exercises
Chapter 13. Manipulating Files and Directories
Removing Files
Renaming Files
Links and Files
Making and Removing Directories
Modifying Permissions
Changing Ownership
Changing Timestamps
Using Simple Modules
Exercises
Chapter 14. Process Management
The system Function
The exec Function
The Environment Variables
Using Backquotes to Capture Output
Processes as Filehandles
Getting Down and Dirty with Fork
Sending and Receiving Signals
Exercises
Chapter 15. Strings and Sorting
Finding a Substring with index
Manipulating a Substring with substr
Formatting Data with sprintf
Advanced Sorting
Exercises
Chapter 16. Simple Databases
DBM Files and DBM Hashes
Manipulating Data with pack and unpack
Fixed-length Random-access Databases
Variable-length (Text) Databases
Exercises
Chapter 17. Some Advanced Perl Techniques
Trapping Errors with eval
Picking Items from a List with grep
Transforming Items from a List with map
Unquoted Hash Keys
More Powerful Regular Expressions
Slices
Exercise
Appendix A. Exercise Answers
Answers to Chapter 2 Exercises
Answers to Chapter 3 Exercises
Answers to Chapter 4 Exercises
Answers to Chapter 5 Exercises
Answers to Chapter 6 Exercises
Answers to Chapter 7 Exercises
Answers to Chapter 8 Exercises
Answers to Chapter 9 Exercises
Answer to Chapter 10 Exercise
Answer to Chapter 11 Exercise
Answer to Chapter 12 Exercise
Answer to Chapter 13 Exercise
Answer to Chapter 14 Exercise
Answer to Chapter 15 Exercise
Answer to Chapter 16 Exercise
Answer to Chapter 17 Exercise
Appendix B. Beyond the Llama
Further Documentation
Regular expressions
Packages
Extending Perl s Functionality
Some Important Modules
Pragmas
Databases
Other Operators and Functions
Mathematics
Lists and Arrays
Bits and Pieces
Formats
Networking and IPC
Security
Debugging
The Common Gateway Interface (CGI)
Command-Line Options
Built in Variables
Syntax Extensions
References
Tied Variables
Operator Overloading
Dynamic Loading
Embedding
Converting Other Languages to Perl
Converting find Command Lines to Perl
Command-line Options in Your Programs
Embedded Documentation
More Ways to Open Filehandles
Locales and Unicode
Threads and Forking
Graphical User Interfaces (GUIs)
And More...
Learning Perl, 5th Edition
ISBN: 0596520107
EAN: 2147483647
Year: 2001
Pages: 205
Authors:
Randal Schwartz
,
Tom Phoenix
,
brian d foy
BUY ON AMAZON
ERP and Data Warehousing in Organizations: Issues and Challenges
ERP System Acquisition: A Process Model and Results From an Austrian Survey
Enterprise Application Integration: New Solutions for a Solved Problem or a Challenging Research Field?
Healthcare Information: From Administrative to Practice Databases
Relevance and Micro-Relevance for the Professional as Determinants of IT-Diffusion and IT-Use in Healthcare
Development of Interactive Web Sites to Enhance Police/Community Relations
Certified Ethical Hacker Exam Prep
Key Terms
IDS, Firewalls, and Honeypots
Exam Simulation
Installing ExamGear Special Edition
Appendix B. Preparing Your System for Knoppix-std
Introducing Microsoft Office InfoPath 2003 (Bpg-Other)
Understanding Form Technologies
Laying Out Forms
Working with Advanced Form Elements
Connecting Forms to Databases
Introducing InfoPath Form Template Projects
Strategies for Information Technology Governance
Integration Strategies and Tactics for Information Technology Governance
Measuring and Managing E-Business Initiatives Through the Balanced Scorecard
A View on Knowledge Management: Utilizing a Balanced Scorecard Methodology for Analyzing Knowledge Metrics
Measuring ROI in E-Commerce Applications: Analysis to Action
Governance Structures for IT in the Health Care Industry
Cisco ASA: All-in-One Firewall, IPS, and VPN Adaptive Security Appliance
Summary
Cisco Firewall Products
Defining an Authentication Server
System Monitoring
Advanced IPS Configuration and Monitoring Using ASDM
Oracle SQL*Plus: The Definitive Guide (Definitive Guides)
History of SQL*Plus
The Working Directory
An Excel-Specific HTML Hack
Tables
Section B.1. Formatting Numbers
flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net
Privacy policy
This website uses cookies. Click
here
to find out more.
Accept cookies