《Perl语言入门,第四版》与其他“骆驼丛书”一样,引领了许多Perl程序员从入门走向精通。本书出自三个Perl社区的卓越成员之手——他们拥有多年从事Perl培训的丰富经验,同时本书针对最新的Perl 5.8版本做了相应的修订。
Perl是为高效工作而设计的。开始时,它只是Unix的系统管理员快速完成一些简单任务的工具,渐渐地,它发展成为了一种跨平台的、功能强大的编程语言,被频繁地应用于网站开发、数据库处理、XML处理和系统管理等等。同时,它作为快速的开发工具在日常工作中仍被广泛使用。也许,你是偶然地进入Perl程序开发领域,但我们相信Perl的简洁特性和强大功能将使你爱不释手。
基于多年Perl咨询的成功经验,作者重新修订了此书,不但保留了原书中详尽的讨论、丰富的实例和独特的理解,而且让本书也适合于初学者。
《Perl语言入门,第四版》包括了许多新的练习和解决方案,相信你可以从中学到许多新知识,本书主要涵盖以下内容:
* 数据结构
* 最小匹配
* 线程
* 数据解析
* 引用
* 对象
* 模块
* 打包实现
今天,如果问Perl程序员哪本书是他们最依赖的参考书籍,绝大多数的回答是——“骆驼丛书”。最好的理由是,这本书能教你成为一名真正的Perl程序员,而不仅仅像其他参考书一样告诉你如何编写Perl程序。
Preface\r\n1.Introduction\r\nQuestions and Answers\r\nWhat Does“Perl”Stand For?\r\nHowCanIGet Perl?\r\nHOW Do I Make a Perl Program?\r\nA Whirlwind Tour of Perl\r\nExercises\r\n2.ScaIar Data\r\nNumbers\r\nStrings\r\nPeris Built-in Warnings\r\nScalar Variables\r\noUtpUt Wlth print\r\nThe if Control Structure\r\nGetting User InpUt\r\nThe chomp operator\r\nThe while Control Structure\r\nThe undef Value\r\nThe defined Function\r\nExercises\r\n 3.Lists and Arrays\r\nAccessing Elements of an Array\r\nSpecial Array Indices\r\nL1St Literals\r\nL1‘st Assignment\r\nInterpolating Arrays I‘nto Strings\r\nThe fOreach Control Structure\r\nScalar and LiSt Context\r\n<STDIN>in LiSt Context\r\nExercises\r\n4.Subroutines\r\nDefinlng a Subroutine\r\nInvoking a Subroutine\r\nReturn Values\r\nArguments\r\nPrivate Variables in Subroutines\r\nVariable-Length Parameter Lists\r\nNores on Lexical(my)Variables\r\nThe use strict Pragma\r\nThe return operator\r\nNon-Scalar Return Values\r\nExercises\r\n5.Input and Output\r\nInput from Standard InpUt\r\nInpUt from the Diamond operator\r\nThe Invocation Arguments\r\noutput to Standard output\r\nFormatted Output with pringf\r\nFilehandles\r\nopening a Filehandle\r\nFatal Errors with die\r\nUsing Filehandles\r\nReopening a Standard Filehandle\r\nExercises\r\n6.Hashes\r\nWhat Is a Hash?\r\nHash Element Access\r\nHash Functions\r\nTypical Use of a Hash\r\nExercises\r\n 7.IntheWo rId 0fReguIar Expressions\r\nWhat Are Regular Expressions?\r\nUsing Simple Patterns\r\nCharacter Classes\r\nExercises\r\n 8.Matching with ReguIar ExpressiOns\r\nMarches with m//\r\noptlon Modifjers\r\nAnchors\r\nThe Binding operator,=~\r\nInterpolating into Patterns\r\nThe Match Variables\r\nGeneral Quantifiers\r\nPrecedence\r\nA Pattern Test Program\r\nExercises\r\n 9.Processing Text with Regular Expressions\r\nSubStltUtions With s///\r\nThe split Operator\r\nThe join Function\r\nm//in List Context\r\nMore PowerfuI Regular Expressions\r\nExercises\r\n10.More Control Structures\r\nThe urlless Control Structure\r\nThe until Control Structure\r\nExpression Modifiers\r\nThe Naked Block Control Structure\r\nThe elsif Clause\r\nAutoincrement and Autodecrement\r\nThe for Control Structure\r\nLoop Controls\r\nLogical Operators\r\nExercise\r\n11.File Tests\r\nFile Test operators\r\nThe star and lstat Functions\r\nThe localtltime Function\r\nBltwiSe Operators\r\nUsing the Special Underscore Filehandle\r\nExercises\r\n12.Directory Operations\r\nMovlng Around the Directory Tree\r\nGlobbing\r\nAn Alternate Syntax for Globbing\r\nDirectorv Handles\r\nRecursiVe Directory Listing\r\nManipulating Files and Dlrectories\r\nRemovlng Files\r\nRenaming Files\r\nLinks and Files\r\nMaking and Removing Dlrectorles\r\nModifying Permissions\r\nChanging ownership\r\nChanging Timestamps\r\nExerclses\r\n13.Strings and Sorting\r\nFinding a Substrlng Wlth index\r\nManipulating a Substrng Wth SUbstr\r\nFormattng Data With sprintf\r\nAdvanced Sortlng\r\nExeFcises\r\n14.Process Management\r\nThe svstem Function\r\nThe exec Function\r\nThe Envronment Variables\r\nUsing Backquotes to Capture Output\r\n Processes as Filehandles\r\n Getting Down and Dirty with fork\r\n Sending and Receiving Signals\r\n Exercises\r\n 15. Perl Modules\r\nFinding Modules\r\nInstalling Modules\r\nUsing Simple Modules\r\nExercise\r\n 16. Some Advanced PerlTechniques\r\nTrapping Errors with eval\r\nPicking Items from a List with grep\r\nTransforming Items from a List with map\r\nUnquoted Hash Keys\r\nSlices\r\nEXercise\r\nA. Exercise Answers\r\nB. Beyondthe Llama\r\nIndex
无封面