Perl语言入门(第四版)(英文影印版)
基本信息
- 原书名: Learning Perl, Fourth Edition
- 原出版社: O'Reilly
- 作者: Randal L.Schwartz,Tom Phoenix,brian d foy
- 丛书名: 东南大学出版社O'REILLY图书系列
- 出版社:东南大学出版社
- ISBN:7564102756
- 上架时间:2006-3-30
- 出版日期:2006 年3月
- 开本:16开
- 页码:283
- 版次:4-1
- 所属分类:
计算机 > 软件与程序设计 > 网络编程 > perl
内容简介回到顶部↑
《perl语言入门,第四版》与其他“骆驼丛书”一样,引领了许多perl程序员从入门走向精通。本书出自三个perl社区的卓越成员之手——他们拥有多年从事perl培训的丰富经验,同时本书针对最新的perl 5.8版本做了相应的修订。
perl是为高效工作而设计的。开始时,它只是unix的系统管理员快速完成一些简单任务的工具,渐渐地,它发展成为了一种跨平台的、功能强大的编程语言,被频繁地应用于网站开发、数据库处理、xml处理和系统管理等等。同时,它作为快速的开发工具在日常工作中仍被广泛使用。也许,你是偶然地进入perl程序开发领域,但我们相信perl的简洁特性和强大功能将使你爱不释手。
基于多年perl咨询的成功经验,作者重新修订了此书,不但保留了原书中详尽的讨论、丰富的实例和独特的理解,而且让本书也适合于初学者。
《perl语言入门,第四版》包括了许多新的练习和解决方案,相信你可以从中学到许多新知识,本书主要涵盖以下内容:
* 数据结构
* 最小匹配
* 线程
* 数据解析
* 引用
* 对象
* 模块
* 打包实现
今天,如果问perl程序员哪本书是他们最依赖的参考书籍,绝大多数的回答是——“骆驼丛书”。最好的理由是,这本书能教你成为一名真正的perl程序员,而不仅仅像其他参考书一样告诉你如何编写perl程序。
perl是为高效工作而设计的。开始时,它只是unix的系统管理员快速完成一些简单任务的工具,渐渐地,它发展成为了一种跨平台的、功能强大的编程语言,被频繁地应用于网站开发、数据库处理、xml处理和系统管理等等。同时,它作为快速的开发工具在日常工作中仍被广泛使用。也许,你是偶然地进入perl程序开发领域,但我们相信perl的简洁特性和强大功能将使你爱不释手。
基于多年perl咨询的成功经验,作者重新修订了此书,不但保留了原书中详尽的讨论、丰富的实例和独特的理解,而且让本书也适合于初学者。
《perl语言入门,第四版》包括了许多新的练习和解决方案,相信你可以从中学到许多新知识,本书主要涵盖以下内容:
* 数据结构
* 最小匹配
* 线程
* 数据解析
* 引用
* 对象
* 模块
* 打包实现
今天,如果问perl程序员哪本书是他们最依赖的参考书籍,绝大多数的回答是——“骆驼丛书”。最好的理由是,这本书能教你成为一名真正的perl程序员,而不仅仅像其他参考书一样告诉你如何编写perl程序。
目录回到顶部↑
preface .
1. introduction
questions and answers
what does "peri" stand for?
how can i get perl?
how do i make a perl program?
a whirlwind tour of perl
exercises
2. 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
1. introduction
questions and answers
what does "peri" stand for?
how can i get perl?
how do i make a perl program?
a whirlwind tour of perl
exercises
2. 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
前言回到顶部↑
Welcome to the fourth edition of Learning Perl. .
If you're looking for the best way to spend your first 30 to 45 hours with the Perl programming language, you've found it. In the pages that follow, you'll find a carefully paced introduction to the language that is the workhorse of the Internet, as well as the language of choice for system administrators, web hackers, and casual programmers around the world.
We can't give you all of Peri in just a few hours. The books that promise this are probably fibbing a bit. Instead, we've carefully selected a useful subset of Peri for you to learn, good for programs from one to 128 lines long, which end up being about 90% of the programs in use out there. And when you're ready to go on, you can get the Alpaca book, which picks up where this book leaves off. We've also included a number of pointers for further education.
Each chapter is small enough so you can read it in an hour or two. Each chapter ends with a series of exercises to help you practice what you've learned, with the answers in Appendix A for your reference. Thus, this book is ideally suited for a classroom "Introduction to Peri" course. We know this because the material for this book was lifted almost word-for-word from our flagship "Learning Peri" course delivered to thousands of students around the world. However, we've designed the book for selfstudy as well.
Peri lives as the "toolbox for Unix," but you don't have to be a Unix guru or a Unix user to use this book. Unless otherwise noted, everything we're saying applies equally well to Windows ActivePerl from ActiveState and most other modern implementations of Peri.
Though you don't need to know about Peri to begin reading this book, we recommend that you have familiarity with basic programming concepts such as variables, loops, subroutines, and arrays, and the all-important "editing a source code file with your favorite text editor." We don't spend any time explaining those concepts. We're pleased that we've had many reports of people successfully picking up Learning Perl and grasping Peri as their first programming language, but we can't promise the same results for everyone.
History of This Book
For the curious, here's how Randal tells the story of how this book came about: After I had finished the first Programming Perl book with Larry Wall (in 1991), I was approached by Taos Mountain Software in Silicon Valley to produce a training course. This included having me deliver the first dozen or so courses and train its staff to continue offering the course. I wrote the course for the company and delivered it as promised.
On the third or fourth delivery of that course (in late 1991), someone came up to me and said, "You know, I really like Programming Perl, but the way the material is presented in this course is so much easier to follow. You oughtta write a book like this course." It sounded like an opportunity to me, so I started thinking about it.
I wrote to Tim O'Reilly with a proposal based on an outline that was similar to the course I was presenting for Taos, though I had rearranged and modified a few of the chapters based on observations in the classroom. I think that was my fastest proposal acceptance in history; I got a message from Tim within 15 minutes saying, "We've been waiting for you to pitch a second book--Programming Perl is selling like gangbusters." That started the effort over the next 18 months to finish the first edition of Learning Perl.
During that time, I was starting to see an opportunity to teach Perl classes outside Silicon Valley, so I created a class based on the text I was writing for Learning Perl. I gave a dozen classes for various clients (including my primary contractor, Intel Oregon), and used the feedback to fine-tune the book draft even further.
The first edition hit the streets on the first day of November 1993 and became a smashing success, frequently even outpacing Programming Perl book sales.
The back-cover jacket of the first book said "written by a leading Perl trainer." Well, that became a self-fulfilling prophesy. Within a few months, I was starting to get email from people all over the United States asking me to teach at their site. During the following seven years, my company became the leading worldwide on-site Perl
* In the contract, I retained the rights to the exercises, hoping someday to reuse them in some other way, like in the magazine columns I was writing at the time. The exercises are the only things that leapt from the Taos course to the book.
My Taos contract had a no-compete clause, so I had to stay out of Silicon Valley with any similar courses,
which I respected for many years.
I remember that date well, because it was also the day I was arrested at my home for computer-related activ- ities around my Intel contract, a series of felony charges for which I was later convicted. See http'//www. lightlink.com/fors/ for details. training company, and I had personally racked up (literally) a million frequent-flier miles. It didn't hurt that the Web started taking off about then, and the webmasters and webmistresses picked Peri as the language of choice for content management, interaction through CGI, and maintenance.
For two years, I worked closely with Tom Phoenix in his role as lead trainer and content manager for Stonehenge, giving him charter to experiment with the "Llama" course by moving things around and breaking things up. When we had come up with what we thought was the best major revision of the course, I contacted O'Reilly and said "it's time for a new book!" And that became the third edition.
Two years after writing the third edition of the Llama, Tom and I decided it was time
to push our follow-on "advanced" course out into the world as a book for people
If you're looking for the best way to spend your first 30 to 45 hours with the Perl programming language, you've found it. In the pages that follow, you'll find a carefully paced introduction to the language that is the workhorse of the Internet, as well as the language of choice for system administrators, web hackers, and casual programmers around the world.
We can't give you all of Peri in just a few hours. The books that promise this are probably fibbing a bit. Instead, we've carefully selected a useful subset of Peri for you to learn, good for programs from one to 128 lines long, which end up being about 90% of the programs in use out there. And when you're ready to go on, you can get the Alpaca book, which picks up where this book leaves off. We've also included a number of pointers for further education.
Each chapter is small enough so you can read it in an hour or two. Each chapter ends with a series of exercises to help you practice what you've learned, with the answers in Appendix A for your reference. Thus, this book is ideally suited for a classroom "Introduction to Peri" course. We know this because the material for this book was lifted almost word-for-word from our flagship "Learning Peri" course delivered to thousands of students around the world. However, we've designed the book for selfstudy as well.
Peri lives as the "toolbox for Unix," but you don't have to be a Unix guru or a Unix user to use this book. Unless otherwise noted, everything we're saying applies equally well to Windows ActivePerl from ActiveState and most other modern implementations of Peri.
Though you don't need to know about Peri to begin reading this book, we recommend that you have familiarity with basic programming concepts such as variables, loops, subroutines, and arrays, and the all-important "editing a source code file with your favorite text editor." We don't spend any time explaining those concepts. We're pleased that we've had many reports of people successfully picking up Learning Perl and grasping Peri as their first programming language, but we can't promise the same results for everyone.
History of This Book
For the curious, here's how Randal tells the story of how this book came about: After I had finished the first Programming Perl book with Larry Wall (in 1991), I was approached by Taos Mountain Software in Silicon Valley to produce a training course. This included having me deliver the first dozen or so courses and train its staff to continue offering the course. I wrote the course for the company and delivered it as promised.
On the third or fourth delivery of that course (in late 1991), someone came up to me and said, "You know, I really like Programming Perl, but the way the material is presented in this course is so much easier to follow. You oughtta write a book like this course." It sounded like an opportunity to me, so I started thinking about it.
I wrote to Tim O'Reilly with a proposal based on an outline that was similar to the course I was presenting for Taos, though I had rearranged and modified a few of the chapters based on observations in the classroom. I think that was my fastest proposal acceptance in history; I got a message from Tim within 15 minutes saying, "We've been waiting for you to pitch a second book--Programming Perl is selling like gangbusters." That started the effort over the next 18 months to finish the first edition of Learning Perl.
During that time, I was starting to see an opportunity to teach Perl classes outside Silicon Valley, so I created a class based on the text I was writing for Learning Perl. I gave a dozen classes for various clients (including my primary contractor, Intel Oregon), and used the feedback to fine-tune the book draft even further.
The first edition hit the streets on the first day of November 1993 and became a smashing success, frequently even outpacing Programming Perl book sales.
The back-cover jacket of the first book said "written by a leading Perl trainer." Well, that became a self-fulfilling prophesy. Within a few months, I was starting to get email from people all over the United States asking me to teach at their site. During the following seven years, my company became the leading worldwide on-site Perl
* In the contract, I retained the rights to the exercises, hoping someday to reuse them in some other way, like in the magazine columns I was writing at the time. The exercises are the only things that leapt from the Taos course to the book.
My Taos contract had a no-compete clause, so I had to stay out of Silicon Valley with any similar courses,
which I respected for many years.
I remember that date well, because it was also the day I was arrested at my home for computer-related activ- ities around my Intel contract, a series of felony charges for which I was later convicted. See http'//www. lightlink.com/fors/ for details. training company, and I had personally racked up (literally) a million frequent-flier miles. It didn't hurt that the Web started taking off about then, and the webmasters and webmistresses picked Peri as the language of choice for content management, interaction through CGI, and maintenance.
For two years, I worked closely with Tom Phoenix in his role as lead trainer and content manager for Stonehenge, giving him charter to experiment with the "Llama" course by moving things around and breaking things up. When we had come up with what we thought was the best major revision of the course, I contacted O'Reilly and said "it's time for a new book!" And that became the third edition.
Two years after writing the third edition of the Llama, Tom and I decided it was time
to push our follow-on "advanced" course out into the world as a book for people


点击看大图





加载中...

