Perl语言入门(影印版)

Perl语言入门(影印版)
作 者: 施瓦茨 菲尼克斯 福瓦
出版社: 东南大学出版社
丛编项: 东南大学出版社O'REILLY图书系列
版权说明: 本书为公共版权或经版权方授权,请支持正版图书
标 签: perl
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

暂缺《Perl语言入门(影印版)》作者简介

内容简介

如果你问今天的Perl程序员,他们在学习Perl时最依赖的书是哪一本,那么你会发现绝大多数人会说是本书::它也被亲切地称为“小骆驼”书。本书第一版于1993年问世,并从此成为畅销书。本书由Perl社区最著名、最活跃的两位成员写成,是Perl程序设计语言的精髓指南。Perl最初只是Unix系统管理员的一个工具,在工作日里被用在无数的小任务中。从那以后,它逐步发展成为一种全功能的程序设计语言,特别是在各种计算平台上,它被用作Web编程、数据库处理、XML处理以及系统管理::它能够完成所有这些工作,同时仍然是处理小的日常工作的完美工具,这是它的设计初衷。Perl快速、有趣,而且特别有用。很多人因为需要Perl而使用它,又因为热爱它而继续使用它。本书第三版不但根据Perl5.6进行了更新,而且还全部重写以满足当今学习Perl的程序员的需要。作者作为咨询专家,凭借讲授Perl课程的多年成功经验,重新设计了本书的叙述节奏和范围,以更好地照顾到那些刚开始学习Perl的读者的需要,同时仍保留了细节讨论、详尽的例子以及折衷策略的介绍,本书正是因此而闻名的。本版对于正则表达式的介绍节奏更缓慢,并加入了一些扩展内容,还设计了新的习题和答案,这样在读者对正则表达式还很生疏时就可以练习他们刚刚所学的内容。Perl是一种协助你出色地完成工作的语言。其他的书可以教你如何用Perl编程,而本书则会把你变成一名Perl程序员。“《Perl语言入门》令人羡慕地完成了它预期的任务::只讲授Perl的基础,而没有其他内容……它构建知识,而不是像很多其他书籍那样用大量的信息把读者淹没。这是O''Reilly出版的Perl系列书籍的第一部(其他书是《ProgrammingPerl》、《AdvancedPerlProgramming》和《PerlCookbook》),它确实是对一种语言的精彩介绍,这种语言已得到全世界开发人员和Web编码者狂热的支持。的确值得一读。”::Amazon.co.uk

图书目录

Preface

1.Introduction

Questions and Answers

What Does“Perl”Stand For?

HowCanIGet Perl?

HOW Do I Make a Perl Program?

A Whirlwind Tour of Perl

Exercises

2.ScaIar Data

Numbers

Strings

Peris Built-in Warnings

Scalar Variables

oUtpUt Wlth print

The if Control Structure

Getting User InpUt

The chomp operator

The while Control Structure

The undef Value

The defined Function

Exercises

3.Lists and Arrays

Accessing Elements of an Array

Special Array Indices

L1St Literals

L1‘st Assignment

Interpolating Arrays I‘nto Strings

The fOreach Control Structure

Scalar and LiSt Context

<STDIN>in LiSt Context

Exercises

4.Subroutines

Definlng a Subroutine

Invoking a Subroutine

Return Values

Arguments

Private Variables in Subroutines

Variable-Length Parameter Lists

Nores on Lexical(my)Variables

The use strict Pragma

The return operator

Non-Scalar Return Values

Exercises

5.Input and Output

Input from Standard InpUt

InpUt from the Diamond operator

The Invocation Arguments

output to Standard output

Formatted Output with pringf

Filehandles

opening a Filehandle

Fatal Errors with die

Using Filehandles

Reopening a Standard Filehandle

Exercises

6.Hashes

What Is a Hash?

Hash Element Access

Hash Functions

Typical Use of a Hash

Exercises

7.IntheWo rId 0fReguIar Expressions

What Are Regular Expressions?

Using Simple Patterns

Character Classes

Exercises

8.Matching with ReguIar ExpressiOns

Marches with m//

optlon Modifjers

Anchors

The Binding operator,=~

Interpolating into Patterns

The Match Variables

General Quantifiers

Precedence

A Pattern Test Program

Exercises

9.Processing Text with Regular Expressions

SubStltUtions With s///

The split Operator

The join Function

m//in List Context

More PowerfuI Regular Expressions

Exercises

10.More Control Structures

The urlless 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

11.File Tests

File Test operators

The star and lstat Functions

The localtltime Function

BltwiSe Operators

Using the Special Underscore Filehandle

Exercises

12.Directory Operations

Movlng Around the Directory Tree

Globbing

An Alternate Syntax for Globbing

Directorv Handles

RecursiVe Directory Listing

Manipulating Files and Dlrectories

Removlng Files

Renaming Files

Links and Files

Making and Removing Dlrectorles

Modifying Permissions

Changing ownership

Changing Timestamps

Exerclses

13.Strings and Sorting

Finding a Substrlng Wlth index

Manipulating a Substrng Wth SUbstr

Formattng Data With sprintf

Advanced Sortlng

ExeFcises

14.Process Management

The svstem Function

The exec Function

The Envronment Variables

Using Backquotes to Capture Output

Processes as Filehandles

Getting Down and Dirty with fork

Sending and Receiving Signals

Exercises

15. Perl Modules

Finding Modules

Installing Modules

Using Simple Modules

Exercise

16. Some Advanced PerlTechniques

Trapping Errors with eval

Picking Items from a List with grep

Transforming Items from a List with map

Unquoted Hash Keys

Slices

EXercise

A. Exercise Answers

B. Beyondthe Llama

Index