Intermediate Perl

副标题:无

作   者:Randal L. Schwartz,Brian D. Foy,Tom Phoenix[著]

分类号:

ISBN:9787564138882

微信扫一扫,移动浏览光盘

简介

《Perl进阶(第2版)(影印版)》内容包括:包和命名空间;引用和作用域,包括正则表达式引用;操作复杂数据结构;面向对象编程;编写和使用模块;测试Perl代码;对CPAN作出贡献……与《Perl语言入门》一样,《Perl进阶(第2版)(影印版)》中的素材紧密结合了作者自1991年起开始教授的广受欢迎的Perl入门课程。第二版包括了该语言的5.14版本的最新修改。《Perl进阶(第2版)(影印版)》的每一章都可以在一到两小时内读完,章节结尾的习题可以帮助你练习你所学到的知识。如果你看过《Perl语言入门》又希望有所进步的话,《Perl进阶》可以教给你编写在各种平台上稳健运行的程序所需的大多数Perl语言核心知识。

目录

Foreword
Preface
1. introduction
What Should You Know Already?
strict and warnings
Perl v5.14
A Note on Versions
What About All Those Footnotes?
What's With the Exercises?
How to Get Help
What If I'm a Perl Course Instructor?
Exercises
2. Using Modules
The Standard Distribution
Exploring CPAN
Using Modules
Functional Interfaces
Selecting What to Import
Object-Oriented Interfaces
A More Typical Object-Oriented Module: Math::Biglnt
Fancier Output with Modules
What's in Core?
The Comprehensive Perl Archive Network
Installing Modules from CPAN
CPANminus
Installing Modules Manually
Setting the Path at the Right Time
Setting the Path Outside the Program
Extending @INC with PERLSLIB
Extending @INC on the Command Line
local::lib
Exercises
3. Intermediate Foundations.
List Operators
List Filtering with grep
Transforming Lists with map
Trapping Errors with eval
Dynamic Code with eval
The do Block
Exercises
4, Introduction toReferences
Doing the Same Task on Many Arrays
PEGS: Perl Graphical Structures
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
Checking Reference Types
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
Manipulating Complex Data Structures
Using the Debugger to View Complex Data
Viewing Complex Data with Data::Dumper
Other Dumpers
Marshalling Data
Storing Complex Data with Storable
YAML
JSON
Using the map and grep Operators
Applying a Bit of Indirection
Selecting and Altering Complex Data
Exercises
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
state Variables
Finding Out Who We Are
Enchanting Subroutines
Dumping Closures
Exercise
8. Filehandle References
The Old Way
The Improved Way
Filehandles to Strings
Processing Strings Line by Line
Collections of Filehandles
lO::Handle and Friends
IO::File
lO::Scalar
IO::Tee
IO::Pipe
IO::Null and IO::Interactive
Directory Handles
Directory Handle References
Exercises
Regular Expression References
Before Regular Expression References
Precompiled Patterns
Regular Expression Options
Applying Regex References
Regexes as Scalars
Build Up Regular Expressions
Regex-Creating Modules
Using Common Patterns
Assembling Regular Expressions
Exercises
10. Practical Reference Tricks
Fancier Sorting
Sorting with Indices
Sorting Efficiently
The Schwartzian Transform
Multilevel Sort with the Schwartzian Transform
Recursively Defined Data
Building Recursively Defined Data
Displaying Recursively Defined Data
Avoiding Recursion
The Breadth-First Solution
Exercises
11. Building Larger Programs
The Cure for the Common Code
Inserting Code with eval
Using do
Using require
The Problem of Namespace Collisions
Packages as Namespace Separators
Scope of a Package Directive
Packages and Lexicals
Package Blocks
Exercises
12. Creating Your Own Perl Distribution
Perl's Two Build Systems
Inside Makefile.PL
Inside Build.PL
Our First Distribution
h2xs
Module: :Starter
Custom Templates
Inside Your Perl Distribution
The META File
Adding Additional Modules
……
13. Introduction to Objects
14. Introduction to Testing
15. Objects with Data
16. Some Advanced Object Topics
17. Exporter
18. Object Destruction
19. Introduction to Moose
20. AdvancedTesting
21. Contributing to CPAN
Appendix: Answers to Exercises
Index of Modules in this Book
Index

已确认勘误

次印刷

页码 勘误内容 提交人 修订印次

Intermediate Perl
    • 名称
    • 类型
    • 大小

    光盘服务联系方式: 020-38250260    客服QQ:4006604884

    意见反馈

    14:15

    关闭

    云图客服:

    尊敬的用户,您好!您有任何提议或者建议都可以在此提出来,我们会谦虚地接受任何意见。

    或者您是想咨询:

    用户发送的提问,这种方式就需要有位在线客服来回答用户的问题,这种 就属于对话式的,问题是这种提问是否需要用户登录才能提问

    Video Player
    ×
    Audio Player
    ×
    pdf Player
    ×
    Current View

    看过该图书的还喜欢

    some pictures

    解忧杂货店

    东野圭吾 (作者), 李盈春 (译者)

    loading icon