书悦天下 -Intermediate Perl(影印版)
本书资料更新时间:2025-01-19 23:02:02

Intermediate Perl(影印版) 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线

Intermediate Perl(影印版)精美图片
》Intermediate Perl(影印版)电子书籍版权问题 请点击这里查看《

Intermediate Perl(影印版)书籍详细信息

  • ISBN:9787564112356
  • 作者:暂无作者
  • 出版社:暂无出版社
  • 出版时间:2008-08
  • 页数:256
  • 价格:37.90
  • 纸张:胶版纸
  • 装帧:平装
  • 开本:16开
  • 语言:未知
  • 丛书:暂无丛书
  • TAG:暂无
  • 豆瓣评分:暂无豆瓣评分
  • 豆瓣短评:点击查看
  • 豆瓣讨论:点击查看
  • 豆瓣目录:点击查看
  • 读书笔记:点击查看
  • 原文摘录:点击查看
  • 更新时间:2025-01-19 23:02:02

内容简介:

从一个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


作者介绍:

暂无相关内容,正在全力查找中


出版社信息:

暂无出版社相关信息,正在全力查找中!


书籍摘录:

暂无相关书籍摘录,正在全力查找中!


在线阅读/听书/购买/PDF下载地址:


原文赏析:

The Skipper and Gilligan are having a conversation:

sub skipper_greets {

my $person = shift;

print "Skipper: Hey there, $person!n";

}

sub gilligan_greets {

my $person = shift;

if ($person eq "Skipper") {

print "Gilligan: Sir, yes, sir, $person!n";

} else {

print "Gilligan: Hi, $person!n";

}

}

skipper_greets("Gilligan");

gilligan_greets("Skipper");

This results in:

Skipper: Hey there, Gilligan!

Gilligan: Sir, yes, sir, Skipper!

So far, nothing unusual has happened. Note, however, that Gilligan has two different behaviors, depending on whether he's addressing the Skipper or someone else.

Now, have the Professor walk into the hut. Both of the Minnow crew greet the newest participant:

skipper_greets('Professor');

gilligan_greets('Professor');

which results in:

...


13.7. Weakening the Argument

The %REGISTRY variable also holds a reference to each animal. So even if we toss away the containing variables, for instance by letting them go out of scope:

{

my @cows = map Cow->named($_), qw(Bessie Gwen);

my @horses = map Horse->named($_), ('Trigger', 'Mr. Ed');

my @racehorses = RaceHorse->named('Billy Boy');

}

print "We've seen:n", map(" $_n", Animal->registered);

print "End of program.n";

we'll still see the same result. The animals aren't destroyed, even though none of the code is holding the animals. At first glance, it looks like we can fix this by altering the destructor:

## in Animal

sub DESTROY {

my $self = shift;

print '[', $self->name, " has died.]n";

delete $REGISTRY{$self};

}

## this code is bad (see text)

But this still res...


其它内容:

编辑推荐

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

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


书摘插图


书籍介绍

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

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

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

主题包括:

包和命名空间

引用和作用域

操作复杂数据结构

面向对象编程

编写和使用模块

测试Perl代码

为CPAN贡献代码

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

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

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


书籍真实打分

  • 故事情节:6分

  • 人物塑造:7分

  • 主题深度:5分

  • 文字风格:4分

  • 语言运用:3分

  • 文笔流畅:7分

  • 思想传递:7分

  • 知识深度:7分

  • 知识广度:7分

  • 实用性:9分

  • 章节划分:3分

  • 结构布局:4分

  • 新颖与独特:4分

  • 情感共鸣:4分

  • 引人入胜:8分

  • 现实相关:5分

  • 沉浸感:9分

  • 事实准确性:6分

  • 文化贡献:5分


网站评分

  • 书籍多样性:3分

  • 书籍信息完全性:5分

  • 网站更新速度:6分

  • 使用便利性:4分

  • 书籍清晰度:7分

  • 书籍格式兼容性:3分

  • 是否包含广告:3分

  • 加载速度:6分

  • 安全性:4分

  • 稳定性:4分

  • 搜索功能:3分

  • 下载便捷性:3分


下载点评

  • 内容完整(135+)
  • 强烈推荐(575+)
  • 值得下载(527+)
  • 方便(124+)
  • 少量广告(121+)
  • 下载快(261+)
  • 微信读书(155+)
  • 可以购买(465+)
  • 傻瓜式服务(540+)
  • 中评多(223+)
  • mobi(340+)
  • 无漏页(671+)
  • 速度慢(268+)

下载评价

  • 网友 马***偲: ( 2025-01-11 21:10:41 )

    好 很好 非常好 无比的好 史上最好的

  • 网友 索***宸: ( 2025-01-09 14:34:17 )

    书的质量很好。资源多

  • 网友 常***翠: ( 2025-01-05 00:11:02 )

    哈哈哈哈哈哈

  • 网友 林***艳: ( 2025-01-11 02:35:24 )

    很好,能找到很多平常找不到的书。

  • 网友 冯***卉: ( 2024-12-22 22:58:53 )

    听说内置一千多万的书籍,不知道真假的

  • 网友 孙***夏: ( 2025-01-14 11:17:57 )

    中评,比上不足比下有余

  • 网友 饶***丽: ( 2025-01-10 17:07:07 )

    下载方式特简单,一直点就好了。

  • 网友 谭***然: ( 2025-01-16 15:09:09 )

    如果不要钱就好了

  • 网友 丁***菱: ( 2025-01-03 00:23:01 )

    好好好好好好好好好好好好好好好好好好好好好好好好好

  • 网友 国***舒: ( 2024-12-25 00:32:56 )

    中评,付点钱这里能找到就找到了,找不到别的地方也不一定能找到


随机推荐