分享
 
 
 

Intermediate Perl(影印版)

Intermediate Perl(影印版)  点此进入淘宝搜索页搜索
  特别声明:本站仅为商品信息简介,并不出售商品,您可点击文中链接进入淘宝网搜索页搜索该商品,有任何问题请与具体淘宝商家联系。
  參考價格: 点此进入淘宝搜索页搜索
  分類: 图书,计算机/网络,程序设计,Perl,

作者: (美)施瓦茨,(美)福格,(美)菲尼克斯著

出 版 社:

出版时间: 2008-8-1字数: 294000版次: 1页数: 256印刷时间: 2008/08/01开本: 16开印次: 1纸张: 胶版纸I S B N : 9787564112356包装: 平装编辑推荐

“这是本多么闪耀夺目的Perl书籍啊……这本书为那些渴望提高技能或者提升职业生涯的Perl程序员填补了空白。更为重要的是,看这本书有一种向大师学习的感觉。”

——Russell J.T. Dyer, UnixReview.com

内容简介

从一个Perl爱好者到一个Perl程序员。《Intermediate Perl》将教您如何把Perl作为编程语言来使用,而不仅只是作为一种脚本语言。

Perl是一种灵活多变、功能强大的编程语言,可以应用在从系统管理到网络编程再到数据库操作等很多方面。人们常说Perl让容易的事情变简单、让困难的事情变得可行。《Intermediate Perl》正是关于如何将技能从处理简单任务跃升到胜任困难任务的书籍。

本书提供对Perl中级编程优雅而仔细的介绍。由畅销的《学习Perl》作者所著,本书提供了《学习Perl》没有涵盖的内容。

主题包括:

包和命名空间

引用和作用域

操作复杂数据结构

面向对象编程

编写和使用模块

测试Perl代码

为CPAN贡献代码

参照《学习Perl》的成功编排格式,本书的每一章都短小到可以在一到两个小时内读完,并在结束时提供一系列练习题帮助您实践刚刚学到的知识。使用本书,您只需熟悉《学习Perl》的内容并有更进一步学习的决心。

对于不同的人而言Perl是一种不同的语言。对于某些人而言,它只是快速编写脚本的工具,但对于另外的人来说,它就是一种功能完整的面向对象语言。Perl被应用在各种任务当中,从对文本文件进行快速全局替换,到计算需要数星期才能完成处理的海量复杂科学数据。您的使用决定Perl的面貌。但不论您将Perl应用在什么方面,本书将帮助您让应用更加有效、高效和优雅。

《Intermediate Perl》是为了把Perl作为一种编程语言来学习,而不仅是为了写脚本而著。这本书把Perl爱好者变为Perl程序员。

目录

Foreword

Preface

1. Introduction

What Should You Know Already?

What About All Those Footnotes?

What's with the Exercises?

What If I'm a Perl Course Instructor?

2. Intermediate Foundations

List Operators

Trapping Errors with eval

Dynamic Code with eval

Exercises

3. Using Modules

The Standard Distribution

Using Modules

Functional Interfaces

Selecting What to Import

Object-Oriented Interfaces

A More Typical Object-Oriented Module: Math::Biglnt

The Comprehensive Perl Archive Network

Installing Modules from CPAN

Setting the Path at the Right Time

Exercises

4. Introduction to References

Performing the Same Task on Many Arrays

Taking a Reference to an Array

Dereferencing the Array Reference

Getting Our Braces Off

Modifying the Array

Nested Data Structures

Simplifying Nested Element References with Arrows

References to Hashes

Exercises

5. References and Scoping .

More Than One Reference to Data

What If That Was the Name?

Reference Counting and Nested Data Structures

When Reference Counting Goes Bad

Creating an Anonymous Array Directly

Creating an Anonymous Hash

Autovivification

Autovivification and Hashes

Exercises

6. Manipulating Complex Data Structures

Using the Debugger to View Complex Data

Viewing Complex Data with Data: :Dumper

YAML

Storing Complex Data with Storable

Using the map and grep Operators

Applying a Bit of Indirection

Selecting and Altering Complex Data

Exercises

7. Subroutine References

Referencing a Named Subroutine

Anonymous Subroutines

Callbacks

Closures

Returning a Subroutine from a Subroutine

Closure Variables as Inputs

Closure Variables as Static Local Variables

Exercise

8. Filehandle References

The Old Way

The Improved Way

The Even Better Way

IO::Handle

Directory Handle References

Exercises

9. Practical Reference Tricks

Review of Sorting

Sorting with Indices

Sorting Efficiently

The Schwartzian Transform

Multi-Level Sort with the Schwartzian Transform

Recursively Defined Data

Building Recursively Defined Data

Displaying Recursively Defined Data

Exercises

10. Building Larger Programs

The Cure for the Common Code

Inserting Code with eval

Using do

Using require

require and @INC

The Problem of Namespace Collisions

Packages as Namespace Separators

Scope of a Package Directive

Packages and Lexicals

Exercises

11. Introduction to Objects

If We Could Talk to the Animals...

Introducing the Method Invocation Arrow

The Extra Parameter of Method Invocation

Calling a Second Method to Simplify Things

A Few Notes About @ISA

Overriding the Methods

Starting the Search from a Different Place

The SUPER Way of Doing Things

What to Do with @_

Where We Are So Far

Exercises

12. Objects with Data

A Horse Is a Horse, of Course of Course--or Is It?

Invoking an Instance Method

Accessing the Instance Data

How to Build a Horse

Inheriting the Constructor

Making a Method Work with Either Classes or Instances

Adding Parameters to a Method

More Interesting Instances

A Horse of a Different Color

Getting Our Deposit Back

Don't Look Inside the Box

Faster Getters and Setters

Getters That Double as Setters

Restricting a Method to Class-Only or Instance-Only

Exercise

13. Object Destruction

Cleaning Up After Yourself

Nested Object Destruction

Beating a Dead Horse

Indirect Object Notation

Additional Instance Variables in Subclasses

Using Class Variables

Weakening the Argument

Exercise

14. Some Advanced Object Topics

UNIVERSAL Methods

Testing Our Objects for Good Behavior

AUTOLOAD as a Last Resort

Using AUTOLOAD for Accessors

Creating Getters and Setters More Easily

Multiple Inheritance

Exercises

15. Exporter

What use Is Doing

Importing with Exporter

@EXPORT and @EXPORT_OK

%EXPORT_TAGS

Exporting in a Primarily OO Module

Custom Import Routines

Exercises

16. Writing a Distribution

There's More Than One Way To Do It

Using h2xs

Embedded Documentation

Controlling the Distribution with Makefile.PL

Alternate Installation Locations (PREFIX=...)

Trivial make test

Trivial make install

Trivial make dist

Using the Alternate Library Location

Exercise

17. Essential Testing

More Tests Mean Better Code

A Simple Test Script

The Art of Testing

The Test Harness

Writing Tests with Test: :More

Testing Object-Oriented Features

A Testing To-Do List

Skipping Tests

More Complex Tests (Multiple Test Scripts)

Exercise

18. Advanced Testing

Testing Large Strings

Testing Files

Testing STDOUT or STDERR

Using Mock Objects

Testing POD

Coverage Testing

Writing Your Own Test: Modules

Exercises

19. Contributing to CPAN

The Comprehensive Perl Archive Network

Getting Prepared

Preparing Your Distribution

Uploading Your Distribution

Announcing the Module

Testing on Multiple Platforms

Consider Writing an Article or Giving a Talk

Exercise

Appendix: Answers to Exercises

Index

Intermediate Perl(影印版)

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
>>返回首頁<<
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有